forked from VoxeLibre/VoxeLibre
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
|
--do not continue if non-existent
|
||||||
if not self or not self.object or not self.object:get_luaentity() then
|
if not self or not self.object or not self.object:get_luaentity() then
|
||||||
|
self.object:remove()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue