1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2025-06-29 14:50:48 +02:00

numeric messages are now printed in full

instead of just the first char.
This commit is contained in:
Vanessa Dannenberg
2018-08-17 10:25:12 -04:00
parent 922efe9210
commit 898a027a77
2 changed files with 5 additions and 7 deletions

View File

@ -220,11 +220,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
end
end
elseif msg and type(msg) == "number" then
if msg == 0 then
minetest.swap_node(pos, { name = "led_marquee:char_32", param2 = fdir + (last_color*8)})
elseif msg > 30 then
minetest.swap_node(pos, { name = "led_marquee:char_"..tostring(msg), param2 = fdir + (last_color*8)})
end
led_marquee.display_msg(pos, channel, tostring(msg))
end
end