Fix bug: LCD screen is now not cleared if something is sent on a different channel

This commit is contained in:
Jeija 2013-04-03 19:42:59 +02:00
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