mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +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 self.timer > 1 then
|
||||||
if n and n.name and n.name ~= "tsm_pyramids:spawner_mummy" then
|
if n and n.name and n.name ~= "tsm_pyramids:spawner_mummy" then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -244,6 +245,7 @@ MUMMY_DEF.on_step = function(self, dtime)
|
|||||||
self.on_death(self)
|
self.on_death(self)
|
||||||
end
|
end
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
return
|
||||||
else
|
else
|
||||||
hit(self)
|
hit(self)
|
||||||
self.sound_timer = 0
|
self.sound_timer = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user