Skip to content

Commit

Permalink
Only serialize color that color is actually present
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes committed Feb 26, 2024
1 parent a76b48f commit e413f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void serializeTo(ComponentStyle style, JsonObject object)
{
object.addProperty( "obfuscated", style.isObfuscatedRaw() );
}
if ( style.hasColor() && style.getColor() != ChatColor.RESET )
if ( style.hasColor() && style.getColor().getColor() != null )
{
object.addProperty( "color", style.getColor().getName() );
}
Expand Down

0 comments on commit e413f2c

Please sign in to comment.