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