]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/mob/api/api_hook.lua
Turn off nametags as they break the animation
[Crafter.git] / mods / mob / api / api_hook.lua
index 5b7c1fea6b50963af1f45c589e1945a9a45f0355..ba070bcbced8f638f255ed7e1c646a21c31ce624 100644 (file)
@@ -56,6 +56,7 @@ mob_register.dead = false
 
 mob_register.mob = true
 mob_register.hostile = def.hostile
+mob_register.hostile_cooldown = def.hostile_cooldown
 
 mob_register.hostile_timer = 0
 mob_register.timer = 0
@@ -131,7 +132,7 @@ mob_register.on_step = function(self, dtime)
        
        if self.dead == false and self.death_animation_timer == 0 then
                self.move(self,dtime)
-               
+               --self.debug_nametag(self,dtime)
                self.manage_hurt_color_timer(self,dtime)
                self.set_animation(self)
                
@@ -140,7 +141,6 @@ mob_register.on_step = function(self, dtime)
                end
                
                self.manage_punch_timer(self,dtime)
-               --self.debug_nametag(self,dtime)
        else
                self.manage_death_animation(self,dtime)
                self.move_head(self,nil,dtime)