aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 1a6b0b4..080add3 100644
--- a/init.lua
+++ b/init.lua
@@ -111,6 +111,9 @@ local function build_motor(hash)
.."dropdown[0,0;3;target;"..table.concat(tpnames, ",")..";1]"
.."button_exit[0,1;3,1;go;Go]")
meta:set_int("version", VERSION)
+ if meta:get_string("formspec") ~= "" then
+ meta:set_string("formspec", "")
+ end
if meta:get_string("motor") ~= hash then
build_motor(meta:get_string("motor"))
end