From 7205e5a14afa771d092c1b5b8c717257b1c96272 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 3 Mar 2022 00:09:01 -0500 Subject: [PATCH] Clear compass target on quest quit --- core/src/main/java/me/blackvein/quests/Quester.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/me/blackvein/quests/Quester.java b/core/src/main/java/me/blackvein/quests/Quester.java index 1cd4ad770..9e0e71ed7 100644 --- a/core/src/main/java/me/blackvein/quests/Quester.java +++ b/core/src/main/java/me/blackvein/quests/Quester.java @@ -952,6 +952,9 @@ public class Quester implements IQuester { } saveData(); updateJournal(); + if (compassTargetQuestId != null && compassTargetQuestId.equals(quest.getId())) { + compassTargetQuestId = null; + } } public LinkedList getCurrentRequirements(final IQuest quest, final boolean ignoreOverrides) {