diff options
author | luk3yx <luk3yx@users.noreply.github.com> | 2018-09-18 07:55:53 +1200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-09-18 13:01:18 +0200 |
commit | 028c290cd70591383682c244a95a955fd3cba083 (patch) | |
tree | d96df34afdb1f1bb2089237feda3126967577e51 | |
parent | 8808bb8911bc443a8cfb71a63b1feb5abeba5b17 (diff) |
Mark 'code' as private as well
Saves on bandwidth, however the code is still accessible via the formspec.
-rw-r--r-- | mesecons_luacontroller/init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index a781e6f..e91d460 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -616,6 +616,7 @@ end local function reset_formspec(meta, code, errmsg) meta:set_string("code", code) + meta:mark_as_private("code") code = minetest.formspec_escape(code or "") errmsg = minetest.formspec_escape(tostring(errmsg or "")) meta:set_string("formspec", "size[12,10]".. |