From 5ec04421b27803f2edef53f10501861c369c7b61 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 3 May 2021 13:26:24 -0500 Subject: [PATCH] Figuring out why minehost not receiving data. --- minehost.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minehost.lua b/minehost.lua index 760572c..c0542f5 100644 --- a/minehost.lua +++ b/minehost.lua @@ -110,10 +110,10 @@ end local function listenToMiners() print("Listening to miners.") while running do - local event, side, channel, reply, message, distance = os.pullEvent("modem_message") + local event, side, sendChannel, replyChannel, data, distance = os.pullEvent("modem_message") print("") - print("Received data: " .. message) - local token, recipient, sender, type, content = interpretData(message) + print("Received data: " .. data) + local token, recipient, sender, type, content = interpretData(data) if token == TOKEN and recipient == HOST then handleMessage(sender, content, type) else