mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 11:25:09 +00:00
Mobs can't runaway while in flop state
This commit is contained in:
parent
a9b59816c4
commit
c48371e859
1 changed files with 2 additions and 2 deletions
|
@ -1962,7 +1962,7 @@ end
|
||||||
-- find someone to runaway from
|
-- find someone to runaway from
|
||||||
local runaway_from = function(self)
|
local runaway_from = function(self)
|
||||||
|
|
||||||
if not self.runaway_from then
|
if not self.runaway_from and self.state ~= "flop" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3018,7 +3018,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||||
end -- END if damage
|
end -- END if damage
|
||||||
|
|
||||||
-- if skittish then run away
|
-- if skittish then run away
|
||||||
if not die and self.runaway == true then
|
if not die and self.runaway == true and self.state ~= "flop" then
|
||||||
|
|
||||||
local lp = hitter:get_pos()
|
local lp = hitter:get_pos()
|
||||||
local s = self.object:get_pos()
|
local s = self.object:get_pos()
|
||||||
|
|
Loading…
Reference in a new issue