1
0
mirror of https://github.com/mt-mods/led_marquee.git synced 2024-11-14 05:40:22 +01:00

store single-byte messages in the meta also

This commit is contained in:
Vanessa Dannenberg 2018-08-17 10:29:10 -04:00
parent 10dcad8e06
commit 02216ee611

View File

@ -210,6 +210,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
local asc = string.byte(msg)
if asc > 30 and asc < 256 then
minetest.swap_node(pos, { name = "led_marquee:char_"..asc, param2 = fdir + (last_color*8)})
meta:set_string("last_msg", tostring(msg))
elseif asc < 28 then
last_color = asc
meta:set_int("last_color", asc)