iteration

This commit is contained in:
Layla 2023-10-07 23:40:52 -04:00
parent 56a425172a
commit e24d7f7a23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ load_data()
while true do
client_id, msg = rednet.receive()
request = textutils.unserialize(msg)
request = msg
if request.action == nil or request.hostname == nil then
rednet.send(client_id, "invalid request")

View File

@ -24,7 +24,7 @@ data = {
["hostname"] = hostname
}
rednet.send(receiverID, textutils.serialize(data))
rednet.send(receiverID, data)
while true do
id, msg = rednet.receive()