Duplicate any extra components when duplicated
This commit is contained in:
parent
9fc862cb74
commit
74f5ffd08b
@ -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() );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user