mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Add in auto mob removal if something goes horribly wrong
This commit is contained in:
parent
348df0fcec
commit
491ef6c8f8
1 changed files with 1 additions and 0 deletions
|
@ -574,6 +574,7 @@ mobs.mob_step = function(self, dtime)
|
|||
|
||||
--do not continue if non-existent
|
||||
if not self or not self.object or not self.object:get_luaentity() then
|
||||
self.object:remove()
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue