From 15560d969c9f456da3be13e7a06c6d69f7c21501 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Mon, 23 Jan 2023 01:03:13 +0000 Subject: [PATCH] Change order of mob step --- mods/ENTITIES/mcl_mobs/api.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 9597f572b5..f5e50ba2aa 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -340,26 +340,22 @@ function mob_class:on_step(dtime) -- Do we abandon out of here now? end - -- Start: This code logically should be moved to after the die check if self:falling(pos) then return end self:check_suspend() - self:check_water_flow() - - self:env_danger_movement_checks (dtime) - -- End: This code logically should be moved to after the die check - if not self.fire_resistant then mcl_burning.tick(self.object, dtime, self) -- mcl_burning.tick may remove object immediately if not self.object:get_pos() then return end end - -- Move to after die check? - if mobs_debug then self:update_tag() end - if self.state == "die" then return end + self:check_water_flow() + self:env_danger_movement_checks (dtime) + + if mobs_debug then self:update_tag() end + self:follow_flop() -- Mob following code. self:set_animation_speed() -- set animation speed relitive to velocity