forked from Mirrorlandia_minetest/digilines
Make lcd text persist properly
This commit is contained in:
parent
b2f959328c
commit
682e1335d9
@ -58,12 +58,15 @@ local prepare_writing = function (pos)
|
||||
end
|
||||
|
||||
local on_digiline_receive = function(pos, node, channel, msg)
|
||||
local setchan = minetest.get_meta(pos):get_string("channel")
|
||||
local meta = minetest.get_meta(pos)
|
||||
local setchan = meta:get_string("channel")
|
||||
if setchan ~= channel then return end
|
||||
|
||||
meta:set_string("text", msg)
|
||||
clearscreen(pos)
|
||||
local text = prepare_writing (pos)
|
||||
text:set_properties({textures={generate_texture(create_lines(msg))}})
|
||||
if msg ~= "" then
|
||||
prepare_writing(pos)
|
||||
end
|
||||
end
|
||||
|
||||
local lcd_box = {
|
||||
|
Loading…
Reference in New Issue
Block a user