diff --git a/mineleader.lua b/mineleader.lua index a49f696..a7b071f 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -425,7 +425,11 @@ local function listen() print("Listening for directives...") local event, side, sendChannel, replyChannel, serialized, distance = os.pullEvent("modem_message") print("Recieved data...") - local data = textutils.unserialise(serialized) + local data = nil + if not pcall(function() data = textutils.unserialise(serialized) end) then + print("Message already table, not deserializing.") + data = serialized + end if data["token"] == TOKEN and data["recipient"] == UNIT and data["type"] == REQUEST then print("Got request: " .. data["request"])