forked from mtcontrib/mobs_redo
animals will not runaway from it's owner (chickens)
This commit is contained in:
parent
2f493c07bb
commit
a654a02505
6
api.lua
6
api.lua
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user