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: error when using consumable item in mission (#165)

91abd419
Sainan <sainan@calamity.gg>
提交于

代码差异

1 个文件 +3 -1
Modified src/services/inventoryService.ts +3 -1
@@ -319,7 +319,9 @@ export const missionInventoryUpdate = async (data: IMissionInventoryUpdateReques
319 319 addConsumables(inventory, Consumables);
320 320 addRecipes(inventory, Recipes);
321 321 addChallenges(inventory, ChallengeProgress);
322 addMissionComplete(inventory, Missions!);
322 if (Missions) {
323 addMissionComplete(inventory, Missions);
324 }
323 325
324 326 const changedInventory = await inventory.save();
325 327 return changedInventory.toJSON();