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

代码差异

1 个文件 +7 -0
Modified src/controllers/api/inventoryController.ts +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