mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 07:10:19 +01:00
Update minetest.show_formspec()
This commit is contained in:
parent
cd604fa9c8
commit
d5cc51a396
@ -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;]")
|
||||||
|
Loading…
Reference in New Issue
Block a user