forked from OpenWF/SpaceNinjaServer
fix: acrithis vendor freezing with fullyStockedVendors (#2326)
Permanent offers were not satisfying bin constraints Reviewed-on: OpenWF/SpaceNinjaServer#2326 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
bbccee0637
commit
3cae42c7d6
@ -281,6 +281,10 @@ const generateVendorManifest = (
|
||||
offersToAdd.push(item);
|
||||
++offset;
|
||||
}
|
||||
if (missingItemsPerBin[item.bin]) {
|
||||
missingItemsPerBin[item.bin] -= 1;
|
||||
numOffersThatNeedToMatchABin -= 1;
|
||||
}
|
||||
} else {
|
||||
numCountedOffers += 1 + item.duplicates;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user