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: exclude DuviriCollectibleDeco from inventory for older versions (#3447)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3447 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

06081f58
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -0
Modified src/controllers/api/inventoryController.ts +7 -0
@@ -525,6 +525,13 @@ export const getInventoryResponse = async (
525 525 }
526 526 }
527 527
528 // Old versions crash when faced with an unrecognised CollectibleType, so filter this array.
529 if (inventoryResponse.CollectibleSeries && version_compare(buildLabel, gameToBuildVersion["33.0.0"]) < 0) {
530 inventoryResponse.CollectibleSeries = inventoryResponse.CollectibleSeries.filter(
531 x => x.CollectibleType != "/Lotus/Types/Lore/Fragments/DuviriFragments/DuviriCollectibleDeco"
532 );
533 }
534
528 535 if (version_compare(buildLabel, gameToBuildVersion["24.4.0"]) < 0) {
529 536 // Builds before U24.4.0 handle equipment features differently
530 537 for (const category of equipmentKeys) {