From aafa748f9267b984f50f8b95e918402ba68e5ddf Mon Sep 17 00:00:00 2001 From: Buckaroo Banzai Date: Mon, 15 Mar 2021 08:44:32 +0000 Subject: [PATCH] check proper `asc` range in digilines events too fixes https://github.com/pandorabox-io/pandorabox.io/issues/629 --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 013848c..bc19b47 100644 --- a/init.lua +++ b/init.lua @@ -388,7 +388,7 @@ local on_digiline_receive_string = function(pos, node, channel, msg) end else 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)}) meta:set_string("last_msg", tostring(msg)) meta:set_int("index", 1)