From 4575fd0d81171ddc267b3ee3ab74fe2c7e8b3dae Mon Sep 17 00:00:00 2001 From: epCode Date: Mon, 31 Oct 2022 23:41:49 +0000 Subject: [PATCH] Fix prexisting villagers getting rid of job clothes --- mods/ENTITIES/mcl_mobs/api.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 13db14f18..5742ebb85 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4096,6 +4096,11 @@ local mob_activate = function(self, staticdata, def, dtime) self.on_spawn_run = true -- if true, set flag to run once only end end + + if not self.wears_armor and self.armor_list then + self.armor_list = nil + end + if not self._run_armor_init and self.wears_armor then self.armor_list={helmet="",chestplate="",boots="",leggings=""} set_armor_texture(self)