Fix component deserialization on obfuscated and strikethrough tags
This commit is contained in:
parent
bd2eaf6879
commit
78ea41015f
@ -35,11 +35,11 @@ public class BaseComponentSerializer
|
||||
}
|
||||
if ( object.has( "strikethrough" ) )
|
||||
{
|
||||
component.setUnderlined( object.get( "strikethrough" ).getAsBoolean() );
|
||||
component.setStrikethrough( object.get( "strikethrough" ).getAsBoolean() );
|
||||
}
|
||||
if ( object.has( "obfuscated" ) )
|
||||
{
|
||||
component.setUnderlined( object.get( "obfuscated" ).getAsBoolean() );
|
||||
component.setObfuscated( object.get( "obfuscated" ).getAsBoolean() );
|
||||
}
|
||||
if ( object.has( "extra" ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user