diff options
author | Carter Kolwey <cheapiephp@gmail.com> | 2016-04-21 02:15:54 -0500 |
---|---|---|
committer | Carter Kolwey <cheapiephp@gmail.com> | 2016-04-21 02:15:54 -0500 |
commit | 2dea21f9ef4274830289d69dd946e771beb55625 (patch) | |
tree | cd3e3833d62845cf90febf05d065cb6bf8d0645a | |
parent | b487783c239d75338254ae8bc7250ba6141d67a6 (diff) | |
download | mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.gz mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.bz2 mesecons-2dea21f9ef4274830289d69dd946e771beb55625.tar.xz mesecons-2dea21f9ef4274830289d69dd946e771beb55625.zip |
Escape command block commands for formspec
-rw-r--r-- | mesecons_commandblock/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua index 9cf9b13..b1a0c6f 100644 --- a/mesecons_commandblock/init.lua +++ b/mesecons_commandblock/init.lua @@ -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.."]" .. |