Fix BaseComponent.duplicate() ignoring extra
This commit is contained in:
parent
8622cf3af4
commit
70564d9f44
@ -78,9 +78,9 @@ public abstract class BaseComponent
|
||||
setObfuscated( old.isObfuscatedRaw() );
|
||||
setClickEvent( old.getClickEvent() );
|
||||
setHoverEvent( old.getHoverEvent() );
|
||||
if ( extra != null )
|
||||
if ( old.getExtra() != null )
|
||||
{
|
||||
for ( BaseComponent component : extra )
|
||||
for ( BaseComponent component : old.getExtra() )
|
||||
{
|
||||
addExtra( component.duplicate() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user