forked from mtcontrib/led_marquee
clarify "get" command
This commit is contained in:
parent
1823b6f0e5
commit
d9499481cf
2
init.lua
2
init.lua
@ -214,7 +214,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
|
||||
elseif asc < 28 then
|
||||
last_color = asc
|
||||
meta:set_int("last_color", asc)
|
||||
elseif msg == "get" then -- get value as ASCII numerical value
|
||||
elseif msg == "get" then -- get the master panel's displayed char as ASCII numerical value
|
||||
digiline:receptor_send(pos, digiline.rules.default, channel, tonumber(string.match(minetest.get_node(pos).name,"led_marquee:char_(.+)"))) -- wonderfully horrible string manipulaiton
|
||||
elseif msg == "getstr" then -- get the last stored message
|
||||
digiline:receptor_send(pos, digiline.rules.default, channel, meta:get_string("last_msg"))
|
||||
|
Loading…
Reference in New Issue
Block a user