Figuring out why minehost not receiving data.

This commit is contained in:
Harrison Deng 2021-05-03 13:26:24 -05:00
parent 42d3cc1e18
commit 5ec04421b2

View File

@ -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