Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
24 Zeilen
1.7 KiB
Diff
24 Zeilen
1.7 KiB
Diff
--- a/net/minecraft/server/AdvancementDataPlayer.java
|
|
+++ b/net/minecraft/server/AdvancementDataPlayer.java
|
|
@@ -158,7 +158,11 @@
|
|
Advancement advancement = this.d.getAdvancementData().a((MinecraftKey) entry.getKey());
|
|
|
|
if (advancement == null) {
|
|
- AdvancementDataPlayer.a.warn("Ignored advancement '{}' in progress file {} - it doesn't exist anymore?", entry.getKey(), this.e);
|
|
+ // CraftBukkit start
|
|
+ if (((MinecraftKey) entry.getKey()).b().equals("minecraft")) {
|
|
+ AdvancementDataPlayer.a.warn("Ignored advancement '{}' in progress file {} - it doesn't exist anymore?", entry.getKey(), this.e);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
} else {
|
|
this.a(advancement, (AdvancementProgress) entry.getValue());
|
|
}
|
|
@@ -227,6 +231,7 @@
|
|
this.i.add(advancement);
|
|
flag = true;
|
|
if (!flag1 && advancementprogress.isDone()) {
|
|
+ this.player.world.getServer().getPluginManager().callEvent(new org.bukkit.event.player.PlayerAdvancementDoneEvent(this.player.getBukkitEntity(), advancement.bukkit)); // CraftBukkit
|
|
advancement.d().a(this.player);
|
|
if (advancement.c() != null && advancement.c().i() && this.player.world.getGameRules().getBoolean("announceAdvancements")) {
|
|
this.d.getPlayerList().sendMessage(new ChatMessage("chat.type.advancement." + advancement.c().e().a(), new Object[] { this.player.getScoreboardDisplayName(), advancement.j()}));
|