forked from VoxeLibre/VoxeLibre
Fix crashes when trying to collision detect a removed mob
This commit is contained in:
parent
cdb840609d
commit
9678b556e1
|
@ -9,6 +9,11 @@ mobs.collision = function(self)
|
|||
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
|
||||
if not self or not self.object or not self.object:get_luaentity() then
|
||||
return
|
||||
end
|
||||
|
||||
--do collision detection from the base of the mob
|
||||
local collisionbox = self.object:get_properties().collisionbox
|
||||
|
||||
|
|
Loading…
Reference in New Issue