fix: fix requesting logic
This commit is contained in:
parent
76787d4283
commit
7e524f29eb
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue