Update minetest.show_formspec()

This commit is contained in:
PilzAdam 2013-01-07 20:40:41 +01:00
parent cd604fa9c8
commit d5cc51a396

View File

@ -1340,7 +1340,7 @@ minetest.register_node("default:chest_locked", {
local meta = minetest.env:get_meta(pos) local meta = minetest.env:get_meta(pos)
if has_locked_chest_privilege(meta, clicker) then if has_locked_chest_privilege(meta, clicker) then
local pos = pos.x .. "," .. pos.y .. "," ..pos.z local pos = pos.x .. "," .. pos.y .. "," ..pos.z
minetest.show_formspec(clicker:get_player_name(), minetest.show_formspec(clicker:get_player_name(), "default:chest_locked",
"size[8,9]".. "size[8,9]"..
"list[nodemeta:".. pos .. ";main;0,0;8,4;]".. "list[nodemeta:".. pos .. ";main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]") "list[current_player;main;0,5;8,4;]")