From e1812b2cdba132afec9ed6cdc45ee9f078806264 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Thu, 22 Apr 2021 20:12:02 -0400 Subject: [PATCH] Reset pause timer to 0 --- mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua index a8894898cf..12b87aef28 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua @@ -658,6 +658,11 @@ mobs.mob_step = function(self, dtime) if self.hostile and self.attacking then mobs.set_yaw_while_attacking(self) end + + --perfectly reset pause_timer + if self.pause_timer < 0 then + self.pause_timer = 0 + end --do normal ai else --jump only (like slimes)