Skip to content

Commit

Permalink
Not serializing reset color
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes committed Feb 25, 2024
1 parent 3e9a7e4 commit a76b48f
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() )
if ( style.hasColor() && style.getColor() != ChatColor.RESET )
{
object.addProperty( "color", style.getColor().getName() );
}
Expand Down

0 comments on commit a76b48f

Please sign in to comment.