Figuring out why minehost not receiving data.
This commit is contained in:
parent
42d3cc1e18
commit
5ec04421b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user