From 3a6a645339f6109c9477f9d94080d03d2ba42406 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Fri, 27 Feb 2015 23:49:55 -0500 Subject: [PATCH] Clear console spam, fixes #26 and #29 --- src/main/java/me/blackvein/quests/Quester.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index 58eccea73..56150487e 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -72,6 +72,7 @@ public class Quester { } }; + int questPoints = 0; Quests plugin; public LinkedList completedQuests = new LinkedList() { @@ -2570,7 +2571,10 @@ public class Quester { List questStages = data.getIntegerList("currentStages"); for (int i = 0; i < questNames.size(); i++) { - currentQuests.put(plugin.getQuest(questNames.get(i)), questStages.get(i)); + if (plugin.getQuest(questNames.get(i)) != null) { + currentQuests.put(plugin.getQuest(questNames.get(i)), questStages.get(i)); + } + } ConfigurationSection dataSec = data.getConfigurationSection("questData");