From 2b3e228418a57b64dbbb2697422fb666a4cde0f6 Mon Sep 17 00:00:00 2001 From: BerndiVader Date: Sat, 26 Jan 2019 12:59:46 +0100 Subject: [PATCH] renew custom linkedlists in stages on reload to apply possible changes --- src/main/java/me/blackvein/quests/Quests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index dbd8c0ecd..b892c1b3e 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -2014,6 +2014,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener ConfigurationSection questStages = config.getConfigurationSection("quests." + questKey + ".stages.ordered"); for (String s2 : questStages.getKeys(false)) { Stage oStage = quest.getStage(Integer.valueOf(s2) - 1); + oStage.customObjectives=new LinkedList<>(); + oStage.customObjectiveCounts=new LinkedList<>(); + oStage.customObjectiveData=new LinkedList<>(); + oStage.customObjectiveDisplays=new LinkedList<>(); if (config.contains("quests." + questKey + ".stages.ordered." + s2 + ".custom-objectives")) { ConfigurationSection sec = config.getConfigurationSection("quests." + questKey + ".stages.ordered." + s2 + ".custom-objectives"); for (String path : sec.getKeys(false)) {