Fix confusing use of static subclass methods
This commit is contained in:
parent
4d004d5fed
commit
2171ca9f51
@ -431,7 +431,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
// Action bar on 1.8 doesn't display the new JSON formattings, legacy works - send it using this for now
|
||||
if ( position == ChatMessageType.ACTION_BAR && getPendingConnection().getVersion() <= ProtocolConstants.MINECRAFT_1_8 )
|
||||
{
|
||||
sendMessage( position, ComponentSerializer.toString( new TextComponent( TextComponent.toLegacyText( message ) ) ) );
|
||||
sendMessage( position, ComponentSerializer.toString( new TextComponent( BaseComponent.toLegacyText( message ) ) ) );
|
||||
} else
|
||||
{
|
||||
sendMessage( position, ComponentSerializer.toString( message ) );
|
||||
@ -444,7 +444,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
// Action bar on 1.8 doesn't display the new JSON formattings, legacy works - send it using this for now
|
||||
if ( position == ChatMessageType.ACTION_BAR && getPendingConnection().getVersion() <= ProtocolConstants.MINECRAFT_1_8 )
|
||||
{
|
||||
sendMessage( position, ComponentSerializer.toString( new TextComponent( TextComponent.toLegacyText( message ) ) ) );
|
||||
sendMessage( position, ComponentSerializer.toString( new TextComponent( BaseComponent.toLegacyText( message ) ) ) );
|
||||
} else
|
||||
{
|
||||
sendMessage( position, ComponentSerializer.toString( message ) );
|
||||
|
Loading…
Reference in New Issue
Block a user