diff options
Diffstat (limited to 'digilines_rtc/init.lua')
-rw-r--r-- | digilines_rtc/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/digilines_rtc/init.lua b/digilines_rtc/init.lua index 40e84d0..6b7bfaf 100644 --- a/digilines_rtc/init.lua +++ b/digilines_rtc/init.lua @@ -46,8 +46,8 @@ minetest.register_node("digilines_rtc:rtc", { meta:set_string("formspec", "field[channel;Channel;${channel}]") end, on_receive_fields = function(pos, formname, fields, sender) - local meta = minetest.get_meta(pos) - fields.channel = fields.channel or "" - meta:set_string("channel", fields.channel) + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end end, }) |