display delay reduced to one sec.

This commit is contained in:
Joachim Stolberg 2018-07-01 20:24:35 +02:00
parent 04f5939055
commit e372cdccce

@ -132,19 +132,19 @@ tubelib.register_node("smartline:display", {}, {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
add_line(meta, payload) add_line(meta, payload)
if not timer:is_started() then if not timer:is_started() then
timer:start(2) timer:start(1)
end end
elseif topic == "row" then -- overwrite the given row elseif topic == "row" then -- overwrite the given row
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
write_row(meta, payload) write_row(meta, payload)
if not timer:is_started() then if not timer:is_started() then
timer:start(2) timer:start(1)
end end
elseif topic == "clear" then -- clear the screen elseif topic == "clear" then -- clear the screen
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("text", "") meta:set_string("text", "")
if not timer:is_started() then if not timer:is_started() then
timer:start(2) timer:start(1)
end end
end end
end, end,