Skip to content

Commit

Permalink
Fix bug: LCD screen is now not cleared if something is sent on a diff…
Browse files Browse the repository at this point in the history
…erent channel
  • Loading branch information
Jeija committed Apr 3, 2013
1 parent a463012 commit ead5773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digilines_lcd/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ead5773

Please sign in to comment.