mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-30 15:30:22 +02:00
Fix channel value getting deleted when quitting without editing the value in LCD, RTC and Light Sensor
This commit is contained in:
@ -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 =
|
||||
|
Reference in New Issue
Block a user