#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
This commit is contained in:
cvrunmin 2020-07-09 08:48:11 +10:00 committed by md_5
parent bcc3460dda
commit c5610a6a13
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -115,7 +115,7 @@ public final class ChatComponentTransformer
{
if ( root.getExtra() != null && !root.getExtra().isEmpty() )
{
List<BaseComponent> list = Lists.newArrayList( transform( player, root.getExtra().toArray( new BaseComponent[ root.getExtra().size() ] ) ) );
List<BaseComponent> list = Lists.newArrayList( transform( player, transformHover, root.getExtra().toArray( new BaseComponent[ root.getExtra().size() ] ) ) );
root.setExtra( list );
}