mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-19 12:34:11 +02: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)
|
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)
|
||||||
|
@ -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.."]"..
|
||||||
|
Loading…
Reference in New Issue
Block a user