1
0
Fork 0

Fix crashes when trying to collision detect a removed mob

mineclone5
jordan4ibanez 2021-04-20 20:33:30 -04:00
parent cdb840609d
commit 9678b556e1
1 changed files with 5 additions and 0 deletions

View File

@ -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