Update
This commit is contained in:
parent
2949ba5703
commit
3151b02dc9
@ -664,6 +664,7 @@ function reportDuty2()
|
|||||||
rednet.send(server, k)
|
rednet.send(server, k)
|
||||||
rednet.send(server, v)
|
rednet.send(server, v)
|
||||||
end
|
end
|
||||||
|
turtlestate["ores"] = {}
|
||||||
rednet.broadcast("done", "ores")
|
rednet.broadcast("done", "ores")
|
||||||
server, _, _ = rednet.receive() -- thanks
|
server, _, _ = rednet.receive() -- thanks
|
||||||
end
|
end
|
||||||
|
@ -23,7 +23,7 @@ end
|
|||||||
|
|
||||||
function drawState()
|
function drawState()
|
||||||
-- server has 19x50 terminal
|
-- server has 19x50 terminal
|
||||||
print(" [ Server Control Panel ]")
|
print(" [ Server Control Panel ]")
|
||||||
print()
|
print()
|
||||||
print(" First Job: "..tostring(firstjob))
|
print(" First Job: "..tostring(firstjob))
|
||||||
print(" Current Job: "..tostring(curjob))
|
print(" Current Job: "..tostring(curjob))
|
||||||
@ -106,8 +106,9 @@ while true do
|
|||||||
else
|
else
|
||||||
ores[ore] = tonumber(number)
|
ores[ore] = tonumber(number)
|
||||||
end
|
end
|
||||||
drawState()
|
|
||||||
end
|
end
|
||||||
|
log("Job "..thejob.." has been completed")
|
||||||
|
drawState()
|
||||||
rednet.send(receiver, "thanks")
|
rednet.send(receiver, "thanks")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user