From 2171ca9f51ad5943f8aa90db1094bdc52fc42399 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 1 Dec 2016 09:46:34 +1100 Subject: [PATCH] Fix confusing use of static subclass methods --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 3ac6396f..b1874ab8 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -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 ) );