Correct the extra check

This commit is contained in:
Thinkofdeath 2014-01-26 01:12:55 +00:00
parent 6641d199b3
commit 5c12f900b3

View File

@ -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() );
}