diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/collision.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/collision.lua index 91feeb192..47c5611bf 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/collision.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/collision.lua @@ -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