Make it really actually work
This commit is contained in:
parent
c15d4a26a0
commit
01bbdc3a92
2
util.lua
2
util.lua
@ -26,7 +26,7 @@ local function query(m)
|
|||||||
local resp
|
local resp
|
||||||
repeat
|
repeat
|
||||||
rednet.broadcast(m, "dragon")
|
rednet.broadcast(m, "dragon")
|
||||||
_, msg = rednet.receive("dragon", 1)
|
_, resp = rednet.receive("dragon", 1)
|
||||||
until resp and resp.msg and resp.uid == uid
|
until resp and resp.msg and resp.uid == uid
|
||||||
return resp.msg
|
return resp.msg
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user