Duplicate any extra components when duplicated

This commit is contained in:
Thinkofdeath 2014-07-25 13:18:09 +01:00
parent 9fc862cb74
commit 74f5ffd08b

View File

@ -78,6 +78,13 @@ public abstract class BaseComponent
setObfuscated( old.isObfuscatedRaw() ); setObfuscated( old.isObfuscatedRaw() );
setClickEvent( old.getClickEvent() ); setClickEvent( old.getClickEvent() );
setHoverEvent( old.getHoverEvent() ); setHoverEvent( old.getHoverEvent() );
if ( extra != null )
{
for ( BaseComponent component : extra )
{
addExtra( component.duplicate() );
}
}
} }
/** /**