Commits

md_5 authored e2f5ea34e9c
Update to Minecraft 1.17
No tags

nms-patches/net/minecraft/advancements/Advancement.patch

Modified
1 1 --- a/net/minecraft/advancements/Advancement.java
2 2 +++ b/net/minecraft/advancements/Advancement.java
3 3 @@ -39,6 +39,7 @@
4 4 private final String[][] requirements;
5 5 private final Set<Advancement> children = Sets.newLinkedHashSet();
6 6 private final IChatBaseComponent chatComponent;
7 7 + public final org.bukkit.advancement.Advancement bukkit = new org.bukkit.craftbukkit.advancement.CraftAdvancement(this); // CraftBukkit
8 8
9 9 public Advancement(MinecraftKey minecraftkey, @Nullable Advancement advancement, @Nullable AdvancementDisplay advancementdisplay, AdvancementRewards advancementrewards, Map<String, Criterion> map, String[][] astring) {
10 - this.key = minecraftkey;
11 -@@ -222,7 +223,7 @@
10 + this.id = minecraftkey;
11 +@@ -233,7 +234,7 @@
12 12 }
13 13
14 14 public Advancement b(MinecraftKey minecraftkey) {
15 15 - if (!this.a((minecraftkey1) -> {
16 16 + if (!this.a((Function<MinecraftKey, Advancement>) (minecraftkey1) -> { // CraftBukkit - decompile error
17 17 return null;
18 18 })) {
19 19 throw new IllegalStateException("Tried to build incomplete advancement!");

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut