mirror of
https://github.com/joe7575/techpack.git
synced 2024-10-04 08:43:09 +02:00
display delay reduced to one sec.
This commit is contained in:
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user