mirror of
https://github.com/mt-mods/led_marquee.git
synced 2024-11-28 01:53:47 +01:00
store single-byte messages in the meta also
This commit is contained in:
parent
10dcad8e06
commit
02216ee611
1
init.lua
1
init.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user