Fix component deserialization on obfuscated and strikethrough tags

This commit is contained in:
Jonas Konrad 2015-03-14 22:10:02 +01:00 committed by md_5
parent bd2eaf6879
commit 78ea41015f

View File

@ -35,11 +35,11 @@ public class BaseComponentSerializer
} }
if ( object.has( "strikethrough" ) ) if ( object.has( "strikethrough" ) )
{ {
component.setUnderlined( object.get( "strikethrough" ).getAsBoolean() ); component.setStrikethrough( object.get( "strikethrough" ).getAsBoolean() );
} }
if ( object.has( "obfuscated" ) ) if ( object.has( "obfuscated" ) )
{ {
component.setUnderlined( object.get( "obfuscated" ).getAsBoolean() ); component.setObfuscated( object.get( "obfuscated" ).getAsBoolean() );
} }
if ( object.has( "extra" ) ) if ( object.has( "extra" ) )
{ {