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
1 changed files with 1 additions and 1 deletions

View File

@ -58,10 +58,10 @@ local prepare_writing = function (pos)
end
local on_digiline_receive = function(pos, node, channel, msg)
clearscreen(pos)
local setchan = minetest.env:get_meta(pos):get_string("channel")
if setchan ~= channel then return end
clearscreen(pos)
local text = prepare_writing (pos)
text:set_properties({textures={generate_texture(create_lines(msg))}})
end