Figuring out why minehost not receiving data.
This commit is contained in:
parent
42d3cc1e18
commit
5ec04421b2
@ -110,10 +110,10 @@ end
|
|||||||
local function listenToMiners()
|
local function listenToMiners()
|
||||||
print("Listening to miners.")
|
print("Listening to miners.")
|
||||||
while running do
|
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("")
|
||||||
print("Received data: " .. message)
|
print("Received data: " .. data)
|
||||||
local token, recipient, sender, type, content = interpretData(message)
|
local token, recipient, sender, type, content = interpretData(data)
|
||||||
if token == TOKEN and recipient == HOST then
|
if token == TOKEN and recipient == HOST then
|
||||||
handleMessage(sender, content, type)
|
handleMessage(sender, content, type)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user