mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-10-17 02:35:23 +02:00
Fix crash on 5.14+ (#5)
Co-authored-by: cheapie <no-email-for-you@example.com>
This commit is contained in:
2
init.lua
2
init.lua
@@ -153,7 +153,7 @@ led_marquee.set_timer = function(pos, timeout)
|
|||||||
end
|
end
|
||||||
|
|
||||||
led_marquee.scroll_text = function(pos, elapsed, skip)
|
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 meta = minetest.get_meta(pos)
|
||||||
local msg = meta:get_string("last_msg")
|
local msg = meta:get_string("last_msg")
|
||||||
local channel = meta:get_string("channel")
|
local channel = meta:get_string("channel")
|
||||||
|
Reference in New Issue
Block a user