From dc709ff35ac3757516f3a040e045f6f63f0ec251 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 29 Jul 2017 13:34:27 +0200 Subject: [PATCH] Update Mobs Redo --- mods/ENTITIES/mobs/api.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs/api.lua b/mods/ENTITIES/mobs/api.lua index 44dd43a09..d684155ba 100644 --- a/mods/ENTITIES/mobs/api.lua +++ b/mods/ENTITIES/mobs/api.lua @@ -1658,7 +1658,11 @@ local do_states = function(self, dtime) set_velocity(self, self.run_velocity) end - set_animation(self, "run") + if self.animation and self.animation.run_start then + set_animation(self, "run") + else + set_animation(self, "walk") + end else set_velocity(self, 0) set_animation(self, "punch") @@ -1831,7 +1835,11 @@ local do_states = function(self, dtime) set_velocity(self, self.run_velocity) end - set_animation(self, "run") + if self.animation and self.animation.run_start then + set_animation(self, "run") + else + set_animation(self, "walk") + end end else -- rnd: if inside reach range