diff options
Diffstat (limited to 'mesecons_luacontroller/init.lua')
-rw-r--r-- | mesecons_luacontroller/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 1b36574..acbf023 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -488,6 +488,9 @@ minetest.register_node(nodename, { node_box = nodebox, on_construct = reset_meta, on_receive_fields = function(pos, formname, fields) + if fields.quit then + return + end reset(pos) reset_meta(pos, fields.code) local err = lc_update(pos, {type="program"}) @@ -531,6 +534,9 @@ minetest.register_node(BASENAME .. "_burnt", { node_box = nodebox, on_construct = reset_meta, on_receive_fields = function(pos, formname, fields) + if fields.quit then + return + end reset(pos) reset_meta(pos, fields.code) local err = lc_update(pos, {type="program"}) |