forked from Mirrorlandia_minetest/digilines
Fix bug: LCD screen is now not cleared if something is sent on a different channel
This commit is contained in:
parent
a463012491
commit
ead577365d
@ -58,10 +58,10 @@ local prepare_writing = function (pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local on_digiline_receive = function(pos, node, channel, msg)
|
local on_digiline_receive = function(pos, node, channel, msg)
|
||||||
clearscreen(pos)
|
|
||||||
local setchan = minetest.env:get_meta(pos):get_string("channel")
|
local setchan = minetest.env:get_meta(pos):get_string("channel")
|
||||||
if setchan ~= channel then return end
|
if setchan ~= channel then return end
|
||||||
|
|
||||||
|
clearscreen(pos)
|
||||||
local text = prepare_writing (pos)
|
local text = prepare_writing (pos)
|
||||||
text:set_properties({textures={generate_texture(create_lines(msg))}})
|
text:set_properties({textures={generate_texture(create_lines(msg))}})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user