From eb7ae5e10e731fc949a9a4184e02a39103f83a1e Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 23 Apr 2021 16:28:30 -0400 Subject: [PATCH] Fix random crash --- mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua index 6f5de1300f..cf397d97ad 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua @@ -85,6 +85,11 @@ end -- states are executed here local land_state_execution = function(self,dtime) + --no collisionbox exception + if not self.object:get_properties() then + return + end + local pos = self.object:get_pos() local collisionbox = self.object:get_properties().collisionbox --get the center of the mob