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: conditional in giveKeyChainItem (#2804)

Using safe navigation now and inverted the condition because i would be false when we have to give items, not true. Closes #2803 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2804 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

32c95b67
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified src/services/questService.ts +1 -1
@@ -302,7 +302,7 @@ export const giveKeyChainItem = async (
302 302 ): Promise<IInventoryChanges> => {
303 303 let inventoryChanges: IInventoryChanges = {};
304 304
305 if (questKey.Progress![keyChainInfo.ChainStage].i) {
305 if (!questKey.Progress?.[keyChainInfo.ChainStage]?.i) {
306 306 inventoryChanges = await addKeyChainItems(inventory, keyChainInfo);
307 307
308 308 if (isEmptyObject(inventoryChanges)) {