XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: acrithis vendor freezing with fullyStockedVendors (#2326)

Permanent offers were not satisfying bin constraints Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2326 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

3cae42c7
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -0
Modified src/services/serversideVendorsService.ts +4 -0
@@ -281,6 +281,10 @@ const generateVendorManifest = (
281 281 offersToAdd.push(item);
282 282 ++offset;
283 283 }
284 if (missingItemsPerBin[item.bin]) {
285 missingItemsPerBin[item.bin] -= 1;
286 numOffersThatNeedToMatchABin -= 1;
287 }
284 288 } else {
285 289 numCountedOffers += 1 + item.duplicates;
286 290 }