Use an actual ArrayList when creating a TextComponent with extras.

Arrays#asList returns a java.util.Arrays.ArrayList which does not support adding more elements.  This previously broke BaseComponent#addExtra.
This commit is contained in:
Nick 2015-05-16 01:02:29 -04:00 committed by md_5
parent ddfd76ebda
commit 5236dd301a

View File

@ -156,7 +156,7 @@ public class TextComponent extends BaseComponent
public TextComponent(BaseComponent... extras)
{
setText( "" );
setExtra( Arrays.asList( extras ) );
setExtra( new ArrayList<BaseComponent>( Arrays.asList( extras ) ) );
}
/**