aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/com/leonardobishop/quests/common/player/questprogressfile/QuestProgressFile.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/main/java/com/leonardobishop/quests/common/player/questprogressfile/QuestProgressFile.java b/common/src/main/java/com/leonardobishop/quests/common/player/questprogressfile/QuestProgressFile.java
index 222a925e..b1f048b7 100644
--- a/common/src/main/java/com/leonardobishop/quests/common/player/questprogressfile/QuestProgressFile.java
+++ b/common/src/main/java/com/leonardobishop/quests/common/player/questprogressfile/QuestProgressFile.java
@@ -222,7 +222,8 @@ public class QuestProgressFile {
* @return true if player has the quest started
*/
public boolean hasQuestStarted(Quest quest) {
- return questProgress.containsKey(quest.getId()) && questProgress.get(quest.getId()).isStarted();
+ QuestProgress qProgress = questProgress.get(quest.getId());
+ return qProgress != null && qProgress.isStarted();
}
/**