mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 15:30:19 +01:00
Fix occassional crash when mummy dies
This commit is contained in:
parent
0629d3b6ed
commit
0974de93e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user