From 74ba2a105c4086b8b64e309eed9e167653e2ece1 Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Sat, 15 Oct 2022 17:15:23 -0700 Subject: [PATCH] fix mob death animation --- 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 4a279d651..ff1b6411b 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3494,7 +3494,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) kb = kb + luaentity._knockback end --self._kb_turn = false - self._turn_to=self.object:get_yaw()+1.57 + self._turn_to=self.object:get_yaw()-1.57 self.frame_speed_multiplier=2.3 if self.animation.run_end then set_animation(self, "run") @@ -3859,7 +3859,7 @@ local mob_step = function(self, dtime) local v = self.object:get_velocity() local d = 0.85 - if self.state and self.state=="die" or check_for_death(self) and not self.animation.die_end then + if (self.state and self.state=="die" or check_for_death(self)) and not self.animation.die_end then d = 0.92 local rot = self.object:get_rotation() rot.z = ((pi/2-rot.z)*.2)+rot.z