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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

fix(import): accept loadouts without `GEAR` field (#2671)

New inventories don't have that field Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2671 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

1e4007f6
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

2 个文件 +3 -3
Modified src/services/importService.ts +1 -1
@@ -444,7 +444,7 @@ export const importLoadOutPresets = (db: ILoadoutDatabase, client: ILoadOutPrese
444 444 db.NORMAL_PVP = client.NORMAL_PVP.map(convertLoadOutConfig);
445 445 db.LUNARO = client.LUNARO.map(convertLoadOutConfig);
446 446 db.OPERATOR = client.OPERATOR.map(convertLoadOutConfig);
447 db.GEAR = client.GEAR.map(convertLoadOutConfig);
447 db.GEAR = client.GEAR?.map(convertLoadOutConfig);
448 448 db.KDRIVE = client.KDRIVE.map(convertLoadOutConfig);
449 449 db.DATAKNIFE = client.DATAKNIFE.map(convertLoadOutConfig);
450 450 db.MECH = client.MECH.map(convertLoadOutConfig);
Modified src/types/saveLoadoutTypes.ts +2 -2
@@ -79,7 +79,7 @@ export interface ILoadoutDatabase {
79 79 NORMAL_PVP: ILoadoutConfigDatabase[];
80 80 LUNARO: ILoadoutConfigDatabase[];
81 81 OPERATOR: ILoadoutConfigDatabase[];
82 GEAR: ILoadoutConfigDatabase[];
82 GEAR?: ILoadoutConfigDatabase[];
83 83 KDRIVE: ILoadoutConfigDatabase[];
84 84 DATAKNIFE: ILoadoutConfigDatabase[];
85 85 MECH: ILoadoutConfigDatabase[];
@@ -96,7 +96,7 @@ export interface ILoadOutPresets {
96 96 ARCHWING: ILoadoutConfigClient[];
97 97 SENTINEL: ILoadoutConfigClient[];
98 98 OPERATOR: ILoadoutConfigClient[];
99 GEAR: ILoadoutConfigClient[];
99 GEAR?: ILoadoutConfigClient[];
100 100 KDRIVE: ILoadoutConfigClient[];
101 101 DATAKNIFE: ILoadoutConfigClient[];
102 102 MECH: ILoadoutConfigClient[];