diff options
| author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-24 16:48:12 +0000 | 
|---|---|---|
| committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-24 16:48:12 +0000 | 
| commit | a654a0250539e97d2d78ebe5438750dd22a6fa8f (patch) | |
| tree | fe94717339c775ada7c07e4b22ef8789cc174537 | |
| parent | 2f493c07bb6646ddcff096903c944369bced0986 (diff) | |
animals will not runaway from it's owner (chickens)
| -rw-r--r-- | api.lua | 6 | 
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@  mobs = {}  mobs.mod = "redo" -mobs.version = "20180322" +mobs.version = "20180324"  -- Intllib @@ -1396,7 +1396,8 @@ local runaway_from = function(self)  		if objs[n]:is_player() then -			if mobs.invis[ objs[n]:get_player_name() ] then +			if mobs.invis[ objs[n]:get_player_name() ] +			or self.owner == objs[n]:get_player_name() then  				type = ""  			else @@ -1441,7 +1442,6 @@ local runaway_from = function(self)  		end  	end -	-- attack player  	if min_player then  		local lp = player:get_pos()  | 
