diff --git a/orders.lua b/orders.lua index a530743..c0ddcf0 100644 --- a/orders.lua +++ b/orders.lua @@ -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)