diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/animation.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/animation.lua index 2dc0ce34bb..3056e59d6f 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/animation.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/animation.lua @@ -1,12 +1,12 @@ local math_pi = math.pi -local math_sin = math.sin -local math_cos = math.cos -- set defined animation mobs.set_animation = function(self, anim, fixed_frame) + if not self.animation or not anim then return end + if self.state == "die" and anim ~= "die" and anim ~= "stand" then return end