From 609e8025adf038ef73172dcfda2bceaed4487452 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 28 Jul 2018 10:38:36 +1000 Subject: [PATCH] SPIGOT-4171: Advancement description not showing By: md_5 --- paper-server/nms-patches/Advancement.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-server/nms-patches/Advancement.patch b/paper-server/nms-patches/Advancement.patch index 348a517583..60be8f1536 100644 --- a/paper-server/nms-patches/Advancement.patch +++ b/paper-server/nms-patches/Advancement.patch @@ -8,6 +8,15 @@ public Advancement(MinecraftKey minecraftkey, @Nullable Advancement advancement, @Nullable AdvancementDisplay advancementdisplay, AdvancementRewards advancementrewards, Map map, String[][] astring) { this.d = minecraftkey; +@@ -46,7 +47,7 @@ + EnumChatFormat enumchatformat = advancementdisplay.e().c(); + IChatBaseComponent ichatbasecomponent1 = ichatbasecomponent.e().a(enumchatformat).a("\n").addSibling(advancementdisplay.b()); + IChatBaseComponent ichatbasecomponent2 = ichatbasecomponent.e().a((chatmodifier) -> { +- chatmodifier.setChatHoverable(new ChatHoverable(ChatHoverable.EnumHoverAction.SHOW_TEXT, ichatbasecomponent)); ++ chatmodifier.setChatHoverable(new ChatHoverable(ChatHoverable.EnumHoverAction.SHOW_TEXT, ichatbasecomponent1)); // CraftBukkit - decompile error + }); + + this.h = (new ChatComponentText("[")).addSibling(ichatbasecomponent2).a("]").a(enumchatformat); @@ -206,7 +207,7 @@ }