From c48371e8590a75ae2cbafa2a1973f638654beeb3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 5 Dec 2020 14:16:07 +0100 Subject: [PATCH] Mobs can't runaway while in flop state --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index d03092998..01d98d9df 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1962,7 +1962,7 @@ end -- find someone to runaway from local runaway_from = function(self) - if not self.runaway_from then + if not self.runaway_from and self.state ~= "flop" then return end @@ -3018,7 +3018,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) end -- END if damage -- 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 s = self.object:get_pos()