From 8a2962cd46046caa2952228c4ca66cd565d5f319 Mon Sep 17 00:00:00 2001 From: epCode Date: Mon, 31 Oct 2022 23:22:14 +0000 Subject: [PATCH] Fix all mobs being givin armor list (Fix Villager loosing jobs) --- 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 567ece152..13db14f18 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4096,7 +4096,7 @@ 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._run_armor_init then + if not self._run_armor_init and self.wears_armor then self.armor_list={helmet="",chestplate="",boots="",leggings=""} set_armor_texture(self) self._run_armor_init = true