mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-27 10:40:21 +01:00
commandblock: replace deprecated formspec element "invsize"
This commit is contained in:
parent
b46c589a38
commit
31b56063a0
@ -48,7 +48,7 @@ minetest.register_chatcommand("hp", {
|
|||||||
local function initialize_data(meta)
|
local function initialize_data(meta)
|
||||||
local commands = minetest.formspec_escape(meta:get_string("commands"))
|
local commands = minetest.formspec_escape(meta:get_string("commands"))
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"invsize[9,5;]" ..
|
"size[9,5]" ..
|
||||||
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..
|
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..
|
||||||
"label[1,3.8;@nearest, @farthest, and @random are replaced by the respective player names]" ..
|
"label[1,3.8;@nearest, @farthest, and @random are replaced by the respective player names]" ..
|
||||||
"button_exit[3.3,4.5;2,1;submit;Submit]")
|
"button_exit[3.3,4.5;2,1;submit;Submit]")
|
||||||
|
Loading…
Reference in New Issue
Block a user