[orders] check for colony after wait

This commit is contained in:
Ben 2024-06-03 13:46:49 +02:00
parent 464f13336e
commit f2f951662e
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -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)