Merge pull request #472 from caseif/quester-init-order

Store Quester instance before loading data
This commit is contained in:
FlyingPikachu 2018-11-09 15:27:40 -05:00 committed by GitHub
commit 9e79d8fcb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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