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

feat(import): Consumables (#895)

Closes #894 Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/895

a5d74b92
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -1
Modified src/services/importService.ts +1 -1
@@ -155,7 +155,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
155 155 if (client.Upgrades !== undefined) {
156 156 replaceArray<IUpgradeDatabase>(db.Upgrades, client.Upgrades.map(convertUpgrade));
157 157 }
158 for (const key of ["RawUpgrades", "MiscItems"] as const) {
158 for (const key of ["RawUpgrades", "MiscItems", "Consumables"] as const) {
159 159 if (client[key] !== undefined) {
160 160 db[key].splice(0, db[key].length);
161 161 client[key].forEach(x => {