mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-25 10:11:32 +01:00
Add in auto mob removal if something goes horribly wrong
This commit is contained in:
parent
348df0fcec
commit
491ef6c8f8
@ -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 New Issue
Block a user