From 966bf32eb997f8079aa55d1877d79c5493f4f619 Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Sun, 16 Sep 2018 18:28:16 -0400 Subject: [PATCH] Store Quester instance before loading data --- src/main/java/me/blackvein/quests/Quests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 8da519135..4695082e3 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -2028,8 +2028,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener return quester; } } - if (quester.loadData() == true) { - questers.put(id, quester); + questers.put(id, quester); + if (!quester.loadData()) { + questers.remove(id); } } return quester;