From 7e524f29eb156a14bf9494264c22ae2e540ab2fb Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Sat, 17 Jan 2026 18:53:10 -0500 Subject: [PATCH] fix: fix requesting logic --- compacting-storage.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compacting-storage.lua b/compacting-storage.lua index 1fa12b7..4dbe0fb 100644 --- a/compacting-storage.lua +++ b/compacting-storage.lua @@ -235,12 +235,13 @@ while true do diff = filter_clamp(diff, current_dist) local crafts = diff_to_crafts(diff) execute_crafts(craft_requester, item_type, crafts) - elseif num > MAX_NUM then - -- keep requesting until above MAX_NUM - requesting[item_type] = nil else requesting[item_type] = true end + if num > MAX_NUM then + -- keep requesting until above MAX_NUM + requesting[item_type] = false + end if requesting[item_type] then request_more(request_t, item_type) end