From f0ce665a64af88379615d834b88638290bcbb07a Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 15 Dec 2019 15:03:07 -0600 Subject: Fix crash on certain invalid touchscreen inputs --- touchscreen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touchscreen.lua b/touchscreen.lua index 285590b..6325f28 100644 --- a/touchscreen.lua +++ b/touchscreen.lua @@ -253,7 +253,7 @@ digistuff.ts_on_digiline_receive = function (pos, node, channel, msg) data = digistuff.process_command(meta,data,msg) else for _,i in ipairs(msg) do - if i.command then + if type(i) == "table" and i.command then data = digistuff.process_command(meta,data,i) or data end end -- cgit v1.2.3