3 Commits

Author SHA1 Message Date
52e4fe1b0b Merge remote-tracking branch 'upstream/master' 2021-03-25 21:39:57 +01:00
Vanessa Dannenberg
2bf2651cee Merge branch 'BuckarooBanzai-master-patch-93143' into 'master'
check proper `asc` range in digilines events too

See merge request VanessaE/led_marquee!7
2021-03-15 14:38:12 +00:00
Buckaroo Banzai
aafa748f92 check proper asc range in digilines events too
fixes https://github.com/pandorabox-io/pandorabox.io/issues/629
2021-03-15 08:44:32 +00:00

View File

@@ -388,7 +388,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg)
end end
else else
local asc = string.byte(msg) local asc = string.byte(msg)
if asc > 29 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)) meta:set_string("last_msg", tostring(msg))
meta:set_int("index", 1) meta:set_int("index", 1)