From 10b965b3bc607560ea0ef2c51a75c76f92740c10 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 7 May 2021 16:14:38 -0500 Subject: [PATCH] Check if data is not nil. --- minehost.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/minehost.lua b/minehost.lua index 297e12b..5c10810 100644 --- a/minehost.lua +++ b/minehost.lua @@ -123,6 +123,7 @@ local function listenToMiners() print("Message already table, not deserializing.") data = serialized end + if (data == nil) then return end if data["token"] == TOKEN and data["recipient"] == HOST then handleMessage(data["sender"], data["type"], data) else