Fix BaseComponent.duplicate() ignoring extra

This commit is contained in:
Adam 2015-05-01 12:04:25 -04:00 committed by md_5
parent 8622cf3af4
commit 70564d9f44

View File

@ -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() );
}