From 239eca8988c56f41da9c53fd6def00b241650640 Mon Sep 17 00:00:00 2001 From: epCode Date: Thu, 27 Oct 2022 01:14:04 +0000 Subject: [PATCH] make mob's not switch armor lying on the ground if they are already equiped. --- mods/ENTITIES/mcl_mobs/api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 303bce8c1..5d7a5c320 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3327,6 +3327,8 @@ local function check_item_pickup(self) end if not self.armor_list then self.armor_list={helmet="",chestplate="",boots="",leggings=""} + elseif self.armor_list[armor_type] and self.armor_list[armor_type] ~= "" then + return end self.armor_list[armor_type]=ItemStack(l.itemstring):get_name() o:remove()