mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-28 11:40:36 +01:00
Only load formspec when armor inventory selected
This commit is contained in:
parent
eeb69e1280
commit
d7a87a515b
@ -94,8 +94,8 @@ end
|
|||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local formspec = armor.formspec:gsub("player_name", name)
|
|
||||||
if fields.armor then
|
if fields.armor then
|
||||||
|
local formspec = armor.formspec:gsub("player_name", name)
|
||||||
inventory_plus.set_inventory_formspec(player, formspec)
|
inventory_plus.set_inventory_formspec(player, formspec)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user