mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
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 = {}
|
||||||
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user