mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-17 22:28:15 +01:00
Fix formatting in ComponentsTest
This commit is contained in:
parent
e690a7b389
commit
d4bbe0d8db
@ -23,8 +23,8 @@ public class ComponentsTest
|
|||||||
// appends &f regardless if the color is non null or not and would otherwise mess with our unit test.
|
// appends &f regardless if the color is non null or not and would otherwise mess with our unit test.
|
||||||
list.remove( 0 );
|
list.remove( 0 );
|
||||||
Assert.assertEquals(
|
Assert.assertEquals(
|
||||||
TextComponent.toLegacyText( components ),
|
TextComponent.toLegacyText( components ),
|
||||||
TextComponent.toLegacyText( list.toArray( new BaseComponent[ list.size() ] ) )
|
TextComponent.toLegacyText( list.toArray( new BaseComponent[ list.size() ] ) )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +60,9 @@ public class ComponentsTest
|
|||||||
ComponentBuilder builder = new ComponentBuilder( "Hello " );
|
ComponentBuilder builder = new ComponentBuilder( "Hello " );
|
||||||
TextComponent textComponent = new TextComponent( "world " );
|
TextComponent textComponent = new TextComponent( "world " );
|
||||||
TranslatableComponent translatableComponent = new TranslatableComponent( "item.swordGold.name" );
|
TranslatableComponent translatableComponent = new TranslatableComponent( "item.swordGold.name" );
|
||||||
builder.append( new BaseComponent[] { // array based BaseComponent append
|
// array based BaseComponent append
|
||||||
|
builder.append( new BaseComponent[]
|
||||||
|
{
|
||||||
textComponent,
|
textComponent,
|
||||||
translatableComponent
|
translatableComponent
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user