Fix channel value getting deleted when quitting without editing the value in LCD, RTC and Light Sensor

This commit is contained in:
Jeija
2014-04-24 10:59:16 +02:00
parent fa3f9ce09d
commit 843c68af14
3 changed files with 9 additions and 7 deletions

View File

@ -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 =