fix: fix requesting logic

This commit is contained in:
Emerson Rosen-Jones 2026-01-17 18:53:10 -05:00
parent 76787d4283
commit 7e524f29eb

View file

@ -235,12 +235,13 @@ while true do
diff = filter_clamp(diff, current_dist) diff = filter_clamp(diff, current_dist)
local crafts = diff_to_crafts(diff) local crafts = diff_to_crafts(diff)
execute_crafts(craft_requester, item_type, crafts) execute_crafts(craft_requester, item_type, crafts)
elseif num > MAX_NUM then
-- keep requesting until above MAX_NUM
requesting[item_type] = nil
else else
requesting[item_type] = true requesting[item_type] = true
end end
if num > MAX_NUM then
-- keep requesting until above MAX_NUM
requesting[item_type] = false
end
if requesting[item_type] then if requesting[item_type] then
request_more(request_t, item_type) request_more(request_t, item_type)
end end