mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 10:23:06 +00:00
Make Save PlayerData within PlayerData. More multithreaded saving
This commit is contained in:
1 parent
cf82314181
commit
221f00ccf4
17 files changed
+120
-101
No files matched your search
@@ -99,13 +99,13 @@ public class QuestDialog extends QuestInterface implements IQuestDialog {
|
||||
if (progress == 0 && completed) {
|
||||
data.dialogData.dialogsRead.remove(this.dialog.id);
|
||||
data.questData.checkQuestCompletion(data, EnumQuestType.values()[1]);
|
||||
data.savePlayerDataOnFile();
|
||||
data.save();
|
||||
}
|
||||
|
||||
if (progress == 1 && !completed) {
|
||||
data.dialogData.dialogsRead.add(this.dialog.id);
|
||||
data.questData.checkQuestCompletion(data, EnumQuestType.values()[1]);
|
||||
data.savePlayerDataOnFile();
|
||||
data.save();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user