mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-13 22:05:27 +01:00
#3621: Only serialize valid chat colors to "color" component
This commit is contained in:
parent
82684c7b6b
commit
f224787222
@ -63,7 +63,7 @@ public class ComponentStyleSerializer implements JsonSerializer<ComponentStyle>,
|
||||
{
|
||||
object.addProperty( "obfuscated", style.isObfuscatedRaw() );
|
||||
}
|
||||
if ( style.hasColor() )
|
||||
if ( style.hasColor() && style.getColor().getColor() != null )
|
||||
{
|
||||
object.addProperty( "color", style.getColor().getName() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user