返回提交历史
Modified
src/controllers/api/inventoryController.ts
+7
-0
XFEstudio/XFESpaceNinjaServer
fix: trim CollectibleSeries Tracking to 64 characters for old versions (#3930)
Closes #3928 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3930 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
1b0f91bd
代码差异
1 个文件
+7
-0
@@ -643,6 +643,13 @@ export const getInventoryResponse = async (
643
643
inventoryResponse.CollectibleSeries = inventoryResponse.CollectibleSeries.filter(
644
644
x => x.CollectibleType != "/Lotus/Types/Lore/Fragments/DuviriFragments/DuviriCollectibleDeco"
645
645
);
646
647
// U22.13.4 crashes if there's more than 64 characters + a '1' here.
648
for (const cs of inventoryResponse.CollectibleSeries) {
649
if (cs.Tracking.length > 64) {
650
cs.Tracking = cs.Tracking.substring(cs.Tracking.length - 64);
651
}
652
}
646
653
}
647
654
648
655
// U28.1 introduced Steel Path