From 7ce1871ef8bc7aa4f7478c4d620c19dbbfa99aa4 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Tue, 22 Nov 2016 19:09:52 +0100 Subject: [PATCH] fix previews of enchanted armor with xdecor --- mods/3d_armor/3d_armor/armor.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/3d_armor/3d_armor/armor.lua b/mods/3d_armor/3d_armor/armor.lua index 8555352b..44bcf4e9 100755 --- a/mods/3d_armor/3d_armor/armor.lua +++ b/mods/3d_armor/3d_armor/armor.lua @@ -181,6 +181,11 @@ armor.set_player_armor = function(self, player) local level = def.groups["armor_"..k] if level then local texture = item:gsub("%:", "_") + if texture:find("enchanted") then --MFF xdecor enchanting preview fix + texture = texture:gsub("_enchanted", "") + texture = texture:gsub("_strong", "") + texture = texture:gsub("_speed", "") + end table.insert(textures, texture..".png") if preview == "" then preview = texture .. "_preview.png"