From f2f951662ee1b8acd6a2463ed38efb78b13e8a02 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Mon, 3 Jun 2024 13:46:49 +0200 Subject: [PATCH] [orders] check for colony after wait --- orders.lua | 3 +++ 1 file changed, 3 insertions(+) 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)