mirror of
https://github.com/mt-mods/led_marquee.git
synced 2024-11-28 01:53:47 +01:00
check proper asc
range in digilines events too
fixes https://github.com/pandorabox-io/pandorabox.io/issues/629
This commit is contained in:
parent
39f571f788
commit
aafa748f92
2
init.lua
2
init.lua
@ -388,7 +388,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
local asc = string.byte(msg)
|
local asc = string.byte(msg)
|
||||||
if asc > 29 and asc < 256 then
|
if asc > 30 and asc < 256 then
|
||||||
minetest.swap_node(pos, { name = "led_marquee:char_"..asc, param2 = fdir + (last_color*8)})
|
minetest.swap_node(pos, { name = "led_marquee:char_"..asc, param2 = fdir + (last_color*8)})
|
||||||
meta:set_string("last_msg", tostring(msg))
|
meta:set_string("last_msg", tostring(msg))
|
||||||
meta:set_int("index", 1)
|
meta:set_int("index", 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user