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) local asc = string.byte(msg)
if asc > 30 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))
elseif asc < 28 then elseif asc < 28 then
last_color = asc last_color = asc
meta:set_int("last_color", asc) meta:set_int("last_color", asc)