mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-28 19:47:49 +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