iteration
This commit is contained in:
@ -38,7 +38,7 @@ load_data()
|
|||||||
|
|
||||||
while true do
|
while true do
|
||||||
client_id, msg = rednet.receive()
|
client_id, msg = rednet.receive()
|
||||||
request = textutils.unserialize(msg)
|
request = msg
|
||||||
|
|
||||||
if request.action == nil or request.hostname == nil then
|
if request.action == nil or request.hostname == nil then
|
||||||
rednet.send(client_id, "invalid request")
|
rednet.send(client_id, "invalid request")
|
||||||
|
@ -24,7 +24,7 @@ data = {
|
|||||||
["hostname"] = hostname
|
["hostname"] = hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
rednet.send(receiverID, textutils.serialize(data))
|
rednet.send(receiverID, data)
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
id, msg = rednet.receive()
|
id, msg = rednet.receive()
|
||||||
|
Reference in New Issue
Block a user