3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 15:20:11 +01:00
Paper/nms-patches/Advancement.patch

20 Zeilen
1.0 KiB
Diff

2017-05-14 04:00:00 +02:00
--- a/net/minecraft/server/Advancement.java
+++ b/net/minecraft/server/Advancement.java
2020-06-25 02:00:00 +02:00
@@ -26,6 +26,7 @@
2020-01-21 22:00:00 +01:00
private final String[][] requirements;
private final Set<Advancement> children = Sets.newLinkedHashSet();
private final IChatBaseComponent chatComponent;
2017-05-14 04:00:00 +02:00
+ public final org.bukkit.advancement.Advancement bukkit = new org.bukkit.craftbukkit.advancement.CraftAdvancement(this); // CraftBukkit
public Advancement(MinecraftKey minecraftkey, @Nullable Advancement advancement, @Nullable AdvancementDisplay advancementdisplay, AdvancementRewards advancementrewards, Map<String, Criterion> map, String[][] astring) {
2020-01-21 22:00:00 +01:00
this.key = minecraftkey;
2020-06-25 02:00:00 +02:00
@@ -209,7 +210,7 @@
2018-07-15 02:00:00 +02:00
}
public Advancement b(MinecraftKey minecraftkey) {
2018-12-25 22:00:00 +01:00
- if (!this.a((minecraftkey1) -> {
2018-07-15 02:00:00 +02:00
+ if (!this.a((Function<MinecraftKey, Advancement>) (minecraftkey1) -> { // CraftBukkit - decompile error
return null;
})) {
throw new IllegalStateException("Tried to build incomplete advancement!");