From c5610a6a13b29ef0a4bbb8f7f0ebbd9a9404c6cb Mon Sep 17 00:00:00 2001 From: cvrunmin Date: Thu, 9 Jul 2020 08:48:11 +1000 Subject: [PATCH] #2897: Add params of recursive call of ChatComponent transform This modification allows deeper levels of HoverEvent (i.e. inside extra) to be transformed into legacy version --- .../java/net/md_5/bungee/util/ChatComponentTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java index 29d2a167..bb41b366 100644 --- a/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java +++ b/proxy/src/main/java/net/md_5/bungee/util/ChatComponentTransformer.java @@ -115,7 +115,7 @@ public final class ChatComponentTransformer { if ( root.getExtra() != null && !root.getExtra().isEmpty() ) { - List list = Lists.newArrayList( transform( player, root.getExtra().toArray( new BaseComponent[ root.getExtra().size() ] ) ) ); + List list = Lists.newArrayList( transform( player, transformHover, root.getExtra().toArray( new BaseComponent[ root.getExtra().size() ] ) ) ); root.setExtra( list ); }