mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
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() );
|
||||
setClickEvent( old.getClickEvent() );
|
||||
setHoverEvent( old.getHoverEvent() );
|
||||
if ( extra != null )
|
||||
{
|
||||
for ( BaseComponent component : extra )
|
||||
{
|
||||
addExtra( component.duplicate() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user