mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-10 12:30:28 +01:00
Fix warnings
This commit is contained in:
parent
b45fbd0f2a
commit
50453aa5a6
|
@ -524,7 +524,7 @@ armor.get_valid_player = function(self, player, msg)
|
|||
minetest.log("warning", "3d_armor: Player inventory is nil "..msg)
|
||||
return
|
||||
end
|
||||
return name, inv, pos
|
||||
return name, inv
|
||||
end
|
||||
|
||||
armor.drop_armor = function(pos, stack)
|
||||
|
|
|
@ -29,9 +29,9 @@ unified_inventory.register_page("armor", {
|
|||
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]"..
|
||||
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"
|
||||
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.."]"..
|
||||
"label[5.0,"..(fy + 0.0)..";"..S("Level")..": "..armor.def[name].level.."]"..
|
||||
"label[5.0,"..(fy + 0.5)..";"..S("Heal")..": "..armor.def[name].heal.."]"..
|
||||
|
|
Loading…
Reference in New Issue
Block a user