#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:
parent
bcc3460dda
commit
c5610a6a13
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user