1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2025-10-16 10:15:22 +02:00

Fix crash on 5.14+ (#5)

Co-authored-by: cheapie <no-email-for-you@example.com>
This commit is contained in:
cheapie
2025-09-21 13:27:38 -05:00
committed by GitHub
parent 7a8b53474d
commit 35f68b0550

View File

@@ -153,7 +153,7 @@ led_marquee.set_timer = function(pos, timeout)
end
led_marquee.scroll_text = function(pos, elapsed, skip)
skip = skip or 1
if type(skip) ~= "number" then skip = 1 end
local meta = minetest.get_meta(pos)
local msg = meta:get_string("last_msg")
local channel = meta:get_string("channel")