mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-06-28 14:26:18 +02:00
Compare commits
4 Commits
20200603-1
...
79bc4755dd
Author | SHA1 | Date | |
---|---|---|---|
79bc4755dd | |||
642aec419a | |||
caf6e24d04 | |||
b081594e2c |
3
init.lua
3
init.lua
@ -360,7 +360,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
|
||||
led_marquee.set_timer(pos, 0)
|
||||
return
|
||||
elseif string.sub(msg, 1, 12) == "scroll_speed" then
|
||||
local timeout = tonumber(string.sub(msg, 13))
|
||||
local timeout = tonumber(string.sub(msg, 13)) or 0
|
||||
led_marquee.set_timer(pos, math.max(timeout, led_marquee.message_minimum_time))
|
||||
elseif string.sub(msg, 1, 11) == "scroll_step" then
|
||||
local skip = tonumber(string.sub(msg, 12))
|
||||
@ -474,3 +474,4 @@ minetest.register_craft({
|
||||
},
|
||||
})
|
||||
|
||||
minetest.log("action", "[led_marquee] loaded.")
|
||||
|
Reference in New Issue
Block a user