stujones11 / minetest-3d_armor

Visible player armor & wielded items for minetest
Other
55 stars 98 forks source link

latest update causes runtime error #104

Closed lhofhansl closed 7 years ago

lhofhansl commented 7 years ago

Fix is just this:

diff --git a/3d_armor_ui/init.lua b/3d_armor_ui/init.lua
index 465847b..3493f67 100644
--- a/3d_armor_ui/init.lua
+++ b/3d_armor_ui/init.lua
@@ -28,10 +28,10 @@ unified_inventory.register_page("armor", {
                local fy = perplayer_formspec.formspec_y
                local name = player:get_player_name()
                local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]"..
-                       "label[0,0;Armor]"..
+                       "label[0,0;Armor]"
                if armor.def[name] then
                        formspec = formspec..
-                       "list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"
+                       "list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"..
                        "image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]"..
                        "label[5.0,"..(fy + 0.0)..";"..S("Level")..": "..armor.def[name].level.."]"..
                        "label[5.0,"..(fy + 0.5)..";"..S("Heal")..":  "..armor.def[name].heal.."]"..
stujones11 commented 7 years ago

Thanks for letting me know.