From 38f20e76eaaa7d22118e967b37844ac6c5992407 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 25 Oct 2024 19:19:49 +0100 Subject: [PATCH] Added null protection inside `lightkeeperQuestWorkaround()` related to daily quests --- project/src/services/LocationLifecycleService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index 43c69be0..59301734 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -715,7 +715,7 @@ export class LocationLifecycleService { (preRaidQuest) => preRaidQuest.qid === postRaidQuest.qid && preRaidQuest.status !== QuestStatus.Success, ) && - this.databaseService.getQuests()[postRaidQuest.qid].traderId === Traders.LIGHTHOUSEKEEPER, + this.databaseService.getQuests()[postRaidQuest.qid]?.traderId === Traders.LIGHTHOUSEKEEPER, ); // Run server complete quest process to ensure player gets rewards