From cecc65197be69e8c8f345b560e57d102e1acb498 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 1 Nov 2025 02:52:05 -0700 Subject: [PATCH] fix: set quest inactive when deleting it (#2963) Closes #2958 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2963 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/controllers/custom/manageQuestsController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/custom/manageQuestsController.ts b/src/controllers/custom/manageQuestsController.ts index 34629e3b..5fc3a964 100644 --- a/src/controllers/custom/manageQuestsController.ts +++ b/src/controllers/custom/manageQuestsController.ts @@ -61,6 +61,7 @@ export const manageQuestsController: RequestHandler = async (req, res) => { break; } inventory.QuestKeys.pull({ ItemType: questItemType }); + if (inventory.ActiveQuest == questItemType) inventory.ActiveQuest = ""; break; } case "completeKey": {