diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java index dc5d5043..2a3e7717 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java @@ -173,26 +173,12 @@ public final class TextComponent extends BaseComponent */ public TextComponent(BaseComponent... extras) { + this(); if ( extras.length == 0 ) { return; } - if ( extras.length == 1 && extras[0] instanceof TextComponent ) - { - setText( ( (TextComponent) extras[0] ).getText() ); - List headExtra = extras[0].getExtra(); - if ( headExtra != null ) - { - for ( BaseComponent extra : headExtra ) - { - addExtra( extra.duplicate() ); - } - } - } else - { - setText( "" ); - setExtra( new ArrayList( Arrays.asList( extras ) ) ); - } + setExtra( new ArrayList( Arrays.asList( extras ) ) ); } /**