mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Fix crashes when trying to collision detect a removed mob
This commit is contained in:
parent
cdb840609d
commit
9678b556e1
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue