Update server
This commit is contained in:
parent
9d4bb4b6a8
commit
e147e1e17d
@ -10,16 +10,7 @@ logpos = 1
|
|||||||
curjob = 69
|
curjob = 69
|
||||||
firstjob = nil
|
firstjob = nil
|
||||||
totalfuel = 0
|
totalfuel = 0
|
||||||
while true do
|
|
||||||
log("From what index do you want to resume jobs?")
|
|
||||||
x = read()
|
|
||||||
if tonumber(x) then
|
|
||||||
curjob = tonumber(x)
|
|
||||||
firstjob = tonumber(x)
|
|
||||||
break
|
|
||||||
end
|
|
||||||
log("That's not a number.")
|
|
||||||
end
|
|
||||||
|
|
||||||
function getNextJob()
|
function getNextJob()
|
||||||
curjob = curjob + 1
|
curjob = curjob + 1
|
||||||
@ -66,6 +57,17 @@ function log(s)
|
|||||||
drawState()
|
drawState()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
while true do
|
||||||
|
log("From what index do you want to resume jobs?")
|
||||||
|
x = read()
|
||||||
|
if tonumber(x) then
|
||||||
|
curjob = tonumber(x)
|
||||||
|
firstjob = tonumber(x)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
log("That's not a number.")
|
||||||
|
end
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
sender, message, proto = rednet.receive()
|
sender, message, proto = rednet.receive()
|
||||||
if not message then
|
if not message then
|
||||||
|
Loading…
Reference in New Issue
Block a user