From 7c15b929fa952479684091fcc04e219a28fb3d24 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 17 Oct 2022 11:27:36 +0200 Subject: [PATCH] Fix possible crash --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 23b3b4997..962f1340f 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2058,7 +2058,7 @@ local monster_attack = function(self) player = obj.object name = obj.name or "" end - if obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then + if obj and obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then table.insert(blacklist_attack, obj.attack) end end