Configurable Advancement Disabling
Allow disabling any (or all) inbuilt advancements with a configuration option. By: md_5 <git@md-5.net>
This commit is contained in:
parent
93fea68749
commit
d16d3c3548
3 changed files with 26 additions and 3 deletions
|
@ -1,6 +1,14 @@
|
|||
--- a/net/minecraft/server/PlayerAdvancements.java
|
||||
+++ b/net/minecraft/server/PlayerAdvancements.java
|
||||
@@ -196,6 +196,7 @@
|
||||
@@ -162,6 +162,7 @@
|
||||
}
|
||||
|
||||
public void save() {
|
||||
+ if (org.spigotmc.SpigotConfig.disableAdvancementSaving) return; // Spigot
|
||||
JsonElement jsonelement = (JsonElement) this.codec.encodeStart(JsonOps.INSTANCE, this.asData()).getOrThrow();
|
||||
|
||||
try {
|
||||
@@ -196,6 +197,7 @@
|
||||
AdvancementHolder advancementholder = loader.get(minecraftkey);
|
||||
|
||||
if (advancementholder == null) {
|
||||
|
@ -8,7 +16,7 @@
|
|||
PlayerAdvancements.LOGGER.warn("Ignored advancement '{}' in progress file {} - it doesn't exist anymore?", minecraftkey, this.playerSavePath);
|
||||
} else {
|
||||
this.startProgress(advancementholder, advancementprogress);
|
||||
@@ -227,6 +228,7 @@
|
||||
@@ -227,6 +229,7 @@
|
||||
this.progressChanged.add(advancement);
|
||||
flag = true;
|
||||
if (!flag1 && advancementprogress.isDone()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue