From 0974de93e460e237520d62360fbabbadf810f7f0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 6 Apr 2020 14:35:54 +0200 Subject: [PATCH] Fix occassional crash when mummy dies --- mummy.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mummy.lua b/mummy.lua index 2076dde..42bc0fc 100644 --- a/mummy.lua +++ b/mummy.lua @@ -128,6 +128,7 @@ spawner_DEF.on_step = function(self, dtime) if self.timer > 1 then if n and n.name and n.name ~= "tsm_pyramids:spawner_mummy" then self.object:remove() + return end end end @@ -244,6 +245,7 @@ MUMMY_DEF.on_step = function(self, dtime) self.on_death(self) end self.object:remove() + return else hit(self) self.sound_timer = 0