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: Ensure that the tag is not '' when pushing in to inventory (#4393)

Re #4375 It's caused by a {"Tag":"","Completes":1} in inventory.Missions, in "Chains of Harrow | Stage: [8/10]" --------- Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4393 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: yhhkevin <235+yhhkevin@noreply.localhost> Co-committed-by: yhhkevin <235+yhhkevin@noreply.localhost>

8b6877bf
yhhkevin <235+yhhkevin@noreply.localhost>
提交于

代码差异

1 个文件 +2 -1
Modified src/services/inventoryService.ts +2 -1
@@ -2834,7 +2834,8 @@ export const addMissionComplete = (
2834 2834 if (Completes && Tier) {
2835 2835 Missions[itemIndex].Tier = Tier;
2836 2836 }
2837 } else {
2837 } else if (Tag !== "") {
2838 //Prevent "Chains of Harrow" pushing "Tag":"" into inventory.Missions displaying incorrect steel path progress
2838 2839 Missions.push({ Tag, Completes });
2839 2840 }
2840 2841 };