[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})
|
listframes.updateItemAt(currentIdx, {id=wo.id, type=wo.workOrderType, target=wo.type, pos=wo.builder, status=resStatus, claimed=wo.isClaimed})
|
||||||
currentIdx = currentIdx + 1
|
currentIdx = currentIdx + 1
|
||||||
wait_for(config.step_sleep_time)
|
wait_for(config.step_sleep_time)
|
||||||
|
if not colony.isInColony() then
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
listframes.clearFrom(currentIdx)
|
listframes.clearFrom(currentIdx)
|
||||||
|
|
Loading…
Reference in a new issue