diff options
author | Florian Euchner <norrepli@gmail.com> | 2016-04-21 19:26:28 +0200 |
---|---|---|
committer | Florian Euchner <norrepli@gmail.com> | 2016-04-21 19:26:28 +0200 |
commit | c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa (patch) | |
tree | cd3e3833d62845cf90febf05d065cb6bf8d0645a | |
parent | b487783c239d75338254ae8bc7250ba6141d67a6 (diff) | |
parent | 2dea21f9ef4274830289d69dd946e771beb55625 (diff) | |
download | mesecons-c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa.tar mesecons-c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa.tar.gz mesecons-c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa.tar.bz2 mesecons-c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa.tar.xz mesecons-c4f0c5c1694a5c5c47ff4f6ca9d3259851b33dfa.zip |
Merge pull request #264 from cheapie/master
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.."]" .. |