From 70325158e636e719aaf669a815d9dc77b0a88ce2 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Fri, 24 Aug 2018 07:06:49 +0200 Subject: [PATCH] Reverts https://github.com/stujones11/minetest-3d_armor/commit/9ce0ed9f557673ce0c178e3dc9c14f197e1f993c / #152 The preview method is skin preview only, without armor. That is wrong for showing on formspec Sorry for inconveniences. I need to fix the preview handling in player_api_modpack-version in an other way --- 3d_armor_ui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor_ui/init.lua b/3d_armor_ui/init.lua index 8b71afa..41eec7b 100644 --- a/3d_armor_ui/init.lua +++ b/3d_armor_ui/init.lua @@ -35,7 +35,7 @@ unified_inventory.register_page("armor", { local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]".. "label[0,0;"..F(S("Armor")).."]".. "list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]".. - "image[2.5,"..(fy - 0.25)..";2,4;"..armor:get_preview(name).."]".. + "image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]".. "label[5.0,"..(fy + 0.0)..";"..F(S("Level"))..": "..armor.def[name].level.."]".. "label[5.0,"..(fy + 0.5)..";"..F(S("Heal"))..": "..armor.def[name].heal.."]".. "listring[current_player;main]"..