1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 01:30:22 +01:00

animals will not runaway from it's owner (chickens)

This commit is contained in:
TenPlus1 2018-03-24 16:48:12 +00:00
parent 2f493c07bb
commit a654a02505

View File

@ -3,7 +3,7 @@
mobs = {} mobs = {}
mobs.mod = "redo" mobs.mod = "redo"
mobs.version = "20180322" mobs.version = "20180324"
-- Intllib -- Intllib
@ -1396,7 +1396,8 @@ local runaway_from = function(self)
if objs[n]:is_player() then 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 = "" type = ""
else else
@ -1441,7 +1442,6 @@ local runaway_from = function(self)
end end
end end
-- attack player
if min_player then if min_player then
local lp = player:get_pos() local lp = player:get_pos()