mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 20:39:39 +00:00
Properly save PlayerData on json only on 'PlayerEvent.SaveToFile'
This commit is contained in:
1 parent
2c82714f9a
commit
79e20b07db
10 files changed
+57
-35
No files matched your search
@@ -161,7 +161,7 @@ public class QuestKill extends QuestInterface implements IQuestKill {
|
||||
this.parent.setKilled(questdata, killed);
|
||||
data.questData.checkQuestCompletion(data, EnumQuestType.values()[2]);
|
||||
data.questData.checkQuestCompletion(data, EnumQuestType.values()[4]);
|
||||
data.saveNBTData(data.getNBT());
|
||||
data.savePlayerDataOnFile();
|
||||
}
|
||||
} else {
|
||||
throw new CustomNPCsException("Progress has to be between 0 and " + this.amount, new Object[0]);
|
||||
|
||||
Reference in new issue
Block a user