summaryrefslogtreecommitdiff
path: root/digilines_lcd/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'digilines_lcd/init.lua')
-rw-r--r--digilines_lcd/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/digilines_lcd/init.lua b/digilines_lcd/init.lua
index fa02197..3d98e1c 100644
--- a/digilines_lcd/init.lua
+++ b/digilines_lcd/init.lua
@@ -105,7 +105,9 @@ minetest.register_node("digilines_lcd:lcd", {
end,
on_receive_fields = function(pos, formname, fields, sender)
- minetest.get_meta(pos):set_string("channel", fields.channel)
+ if (fields.channel) then
+ minetest.get_meta(pos):set_string("channel", fields.channel)
+ end
end,
digiline =