forked from mtcontrib/mobs_redo
self.animation check
This commit is contained in:
parent
dd04be9749
commit
0a6fdbc3f1
3
api.lua
3
api.lua
@ -384,7 +384,8 @@ function check_for_death(self)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- default death function and die animation (if defined)
|
-- default death function and die animation (if defined)
|
||||||
if self.animation.die_start
|
if self.animation
|
||||||
|
and self.animation.die_start
|
||||||
and self.animation.die_end then
|
and self.animation.die_end then
|
||||||
|
|
||||||
self.attack = nil
|
self.attack = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user