Commits

md_5 authored d05c8b14816
Mappings Update
No tags

nms-patches/Advancement.patch

Modified
1 1 --- a/net/minecraft/server/Advancement.java
2 2 +++ b/net/minecraft/server/Advancement.java
3 3 @@ -27,6 +27,7 @@
4 4 private final String[][] f;
5 5 private final Set<Advancement> g = Sets.newLinkedHashSet();
6 6 private final IChatBaseComponent h;
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 10 this.d = minecraftkey;
11 -@@ -46,7 +47,7 @@
12 - EnumChatFormat enumchatformat = advancementdisplay.e().c();
13 - IChatBaseComponent ichatbasecomponent1 = ichatbasecomponent.h().a(enumchatformat).a("\n").addSibling(advancementdisplay.b());
14 - IChatBaseComponent ichatbasecomponent2 = ichatbasecomponent.h().a((chatmodifier) -> {
15 -- chatmodifier.setChatHoverable(new ChatHoverable(ChatHoverable.EnumHoverAction.SHOW_TEXT, ichatbasecomponent));
16 -+ chatmodifier.setChatHoverable(new ChatHoverable(ChatHoverable.EnumHoverAction.SHOW_TEXT, ichatbasecomponent1)); // CraftBukkit - decompile error
17 - });
18 -
19 - this.h = (new ChatComponentText("[")).addSibling(ichatbasecomponent2).a("]").a(enumchatformat);
20 -@@ -55,7 +56,7 @@
21 - }
22 -
23 - public Advancement.SerializedAdvancement a() {
24 -- return new Advancement.SerializedAdvancement(this.a == null ? null : this.a.getName(), this.b, this.c, this.e, this.f, null);
25 -+ return new Advancement.SerializedAdvancement(this.a == null ? null : this.a.getName(), this.b, this.c, this.e, this.f); // CraftBukkit - decompile error
26 - }
27 -
28 - @Nullable
29 11 @@ -206,7 +207,7 @@
30 12 }
31 13
32 14 public Advancement b(MinecraftKey minecraftkey) {
33 -- if (!this.a((minecraftkey) -> {
15 +- if (!this.a((minecraftkey1) -> {
34 16 + if (!this.a((Function<MinecraftKey, Advancement>) (minecraftkey1) -> { // CraftBukkit - decompile error
35 17 return null;
36 18 })) {
37 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