Escape command block commands for formspec

This commit is contained in:
Carter Kolwey 2016-04-21 02:15:54 -05:00
parent b487783c23
commit 2dea21f9ef

View File

@ -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.."]" ..