返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: handle empty UpgradeFingerprint for U7~U8 mod drops (#3362)
Closes #3361 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3362 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
db2b1430
代码差异
1 个文件
+1
-1
@@ -502,7 +502,7 @@ export const addMissionInventoryUpdates = async (
502
502
value.forEach(clientUpgrade => {
503
503
const id = fromOid(clientUpgrade.ItemId);
504
504
// Really old builds (tested U7-U8) do not have the UpgradeFingerprint set for unranked mod drops
505
clientUpgrade.UpgradeFingerprint ??= "lvl=0|";
505
clientUpgrade.UpgradeFingerprint ||= "lvl=0|";
506
506
// U11 and below also don't initialize ItemCount since RawUpgrade doesn't exist in them
507
507
clientUpgrade.ItemCount ??= 1;
508
508
if (account.BuildLabel && version_compare(account.BuildLabel, gameToBuildVersion["18.18.0"]) < 0) {