From d0b60e2399936f019a552388b04c48a95a8d6d8d Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 2 May 2022 10:39:49 +0200 Subject: [PATCH] Fix player armor enchanting overlay (#2161) --- mods/ITEMS/mcl_enchanting/engine.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_enchanting/engine.lua b/mods/ITEMS/mcl_enchanting/engine.lua index 7be1d72443..11a98ed4ff 100644 --- a/mods/ITEMS/mcl_enchanting/engine.lua +++ b/mods/ITEMS/mcl_enchanting/engine.lua @@ -277,8 +277,10 @@ function mcl_enchanting.initialize() new_def.groups.not_in_craft_guide = 1 new_def.groups.enchanted = 1 - if new_def._mcl_armor_texture and not type(new_def._mcl_armor_texture) == "function" then - new_def._mcl_armor_texture = new_def._mcl_armor_texture .. mcl_enchanting.overlay + if new_def._mcl_armor_texture then + if type(new_def._mcl_armor_texture) == "string" then + new_def._mcl_armor_texture = new_def._mcl_armor_texture .. mcl_enchanting.overlay + end end new_def._mcl_enchanting_enchanted_tool = new_name