summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-04-30 14:44:47 +0200
committerJeija <jeija@mesecons.net>2014-04-30 14:44:47 +0200
commita6916191aa56575fe8120572ac0eb8d91c4c491a (patch)
tree5ac017ec8bea5b890d7aee88619b8c3b3de5b168
parentf1eaee2281faa0ada1d72b009de32826b3204024 (diff)
downloadmesecons-a6916191aa56575fe8120572ac0eb8d91c4c491a.tar
mesecons-a6916191aa56575fe8120572ac0eb8d91c4c491a.tar.gz
mesecons-a6916191aa56575fe8120572ac0eb8d91c4c491a.tar.bz2
mesecons-a6916191aa56575fe8120572ac0eb8d91c4c491a.tar.xz
mesecons-a6916191aa56575fe8120572ac0eb8d91c4c491a.zip
Fix #140 once again
-rw-r--r--mesecons_detector/init.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua
index 79aa1f9..88614b5 100644
--- a/mesecons_detector/init.lua
+++ b/mesecons_detector/init.lua
@@ -11,9 +11,8 @@ local object_detector_make_formspec = function (pos)
end
local object_detector_on_receive_fields = function(pos, formname, fields)
- if fields.quit then
- return
- end
+ if not fields.scanname or not fields.digiline_channel then return end;
+
local meta = minetest.get_meta(pos)
meta:set_string("scanname", fields.scanname)
meta:set_string("digiline_channel", fields.digiline_channel)