From 024cf46307abb6fefbfe8be04941205026561177 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 16 Apr 2021 11:52:29 -0400 Subject: [PATCH] Adjust spacing in animation.lua --- mods/ENTITIES/mcl_mobs/api/mob_functions/animation.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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