[orders] check for colony after wait
This commit is contained in:
parent
464f13336e
commit
f2f951662e
|
@ -33,6 +33,9 @@ local function fetch(wait_for)
|
|||
listframes.updateItemAt(currentIdx, {id=wo.id, type=wo.workOrderType, target=wo.type, pos=wo.builder, status=resStatus, claimed=wo.isClaimed})
|
||||
currentIdx = currentIdx + 1
|
||||
wait_for(config.step_sleep_time)
|
||||
if not colony.isInColony() then
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
listframes.clearFrom(currentIdx)
|
||||
|
|
Loading…
Reference in a new issue