Store Quester instance before loading data

This commit is contained in:
Max Roncace 2018-09-16 18:28:16 -04:00
parent 502ea53f9a
commit 966bf32eb9
No known key found for this signature in database
GPG Key ID: AB5B3305EB9D4E01

View File

@ -2028,8 +2028,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
return quester; return quester;
} }
} }
if (quester.loadData() == true) {
questers.put(id, quester); questers.put(id, quester);
if (!quester.loadData()) {
questers.remove(id);
} }
} }
return quester; return quester;