mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-10 20:30:21 +01:00
Escape command block commands for formspec
This commit is contained in:
parent
b487783c23
commit
2dea21f9ef
|
@ -43,7 +43,7 @@ minetest.register_chatcommand("hp", {
|
|||
})
|
||||
|
||||
local function initialize_data(meta)
|
||||
local commands = meta:get_string("commands")
|
||||
local commands = minetest.formspec_escape(meta:get_string("commands"))
|
||||
meta:set_string("formspec",
|
||||
"invsize[9,5;]" ..
|
||||
"textarea[0.5,0.5;8.5,4;commands;Commands;"..commands.."]" ..
|
||||
|
|
Loading…
Reference in New Issue
Block a user