mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 10:07:38 +01:00
Correct the extra check
This commit is contained in:
parent
6641d199b3
commit
5c12f900b3
@ -31,7 +31,7 @@ public class TextComponentSerializer extends BaseComponentSerializer implements
|
||||
public JsonElement serialize(TextComponent src, Type typeOfSrc, JsonSerializationContext context)
|
||||
{
|
||||
List<BaseComponent> extra = src.getExtra();
|
||||
if ( !src.hasFormatting() && (extra == null || extra.size() > 0) )
|
||||
if ( !src.hasFormatting() && (extra == null || extra.size() == 0) )
|
||||
{
|
||||
return new JsonPrimitive( src.getText() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user