mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 07:33:11 +01:00
SPIGOT-4171: Advancement description not showing
This commit is contained in:
parent
392108bf94
commit
e3c21decb0
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@
|
||||||
|
|
||||||
public Advancement(MinecraftKey minecraftkey, @Nullable Advancement advancement, @Nullable AdvancementDisplay advancementdisplay, AdvancementRewards advancementrewards, Map<String, Criterion> map, String[][] astring) {
|
public Advancement(MinecraftKey minecraftkey, @Nullable Advancement advancement, @Nullable AdvancementDisplay advancementdisplay, AdvancementRewards advancementrewards, Map<String, Criterion> map, String[][] astring) {
|
||||||
this.d = minecraftkey;
|
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 @@
|
@@ -206,7 +207,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue