Fix warnings

This commit is contained in:
stujones11 2017-04-11 20:54:26 +01:00
parent b45fbd0f2a
commit 50453aa5a6
2 changed files with 3 additions and 3 deletions

View File

@ -524,7 +524,7 @@ armor.get_valid_player = function(self, player, msg)
minetest.log("warning", "3d_armor: Player inventory is nil "..msg) minetest.log("warning", "3d_armor: Player inventory is nil "..msg)
return return
end end
return name, inv, pos return name, inv
end end
armor.drop_armor = function(pos, stack) armor.drop_armor = function(pos, stack)

View File

@ -29,9 +29,9 @@ unified_inventory.register_page("armor", {
local name = player:get_player_name() local name = player:get_player_name()
local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]".. local formspec = "background[0.06,"..fy..";7.92,7.52;3d_armor_ui_form.png]"..
"label[0,0;Armor]".. "label[0,0;Armor]"..
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"
if armor.def[name] then if armor.def[name] then
formspec = formspec.. formspec = formspec..
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"
"image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]".. "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.0)..";"..S("Level")..": "..armor.def[name].level.."]"..
"label[5.0,"..(fy + 0.5)..";"..S("Heal")..": "..armor.def[name].heal.."]".. "label[5.0,"..(fy + 0.5)..";"..S("Heal")..": "..armor.def[name].heal.."]"..