From 813a88f3a1f66fb63372cf2594a3ffaee0245bb0 Mon Sep 17 00:00:00 2001 From: Scott Horvath Date: Sat, 19 Jan 2019 18:09:48 -0600 Subject: [PATCH] Fixes Stand appending extra ".png" to texture when a "texture" attribute is explicity set on the armor's definition. --- 3d_armor_stand/init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/3d_armor_stand/init.lua b/3d_armor_stand/init.lua index 6570270..718d30f 100644 --- a/3d_armor_stand/init.lua +++ b/3d_armor_stand/init.lua @@ -75,8 +75,11 @@ local function update_entity(pos) local def = stack:get_definition() or {} local groups = def.groups or {} if groups["armor_"..element] then - local texture = def.texture or item:gsub("%:", "_") - table.insert(textures, texture..".png") + if def.texture then + table.insert(textures, def.texture) + else + table.insert(textures, item:gsub("%:", "_")..".png") + end end end end