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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified src/services/missionInventoryUpdateService.ts +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) {