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