mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 10:37:46 +01:00
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:
parent
ddfd76ebda
commit
5236dd301a
@ -156,7 +156,7 @@ public class TextComponent extends BaseComponent
|
|||||||
public TextComponent(BaseComponent... extras)
|
public TextComponent(BaseComponent... extras)
|
||||||
{
|
{
|
||||||
setText( "" );
|
setText( "" );
|
||||||
setExtra( Arrays.asList( extras ) );
|
setExtra( new ArrayList<BaseComponent>( Arrays.asList( extras ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user