From 0c69814db7dd42982228194ec41c8b38f51150c3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 9 Mar 2013 14:29:54 +1100 Subject: [PATCH] Make sendMessage work again --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 5 +---- 1 file changed, 1 insertion(+), 4 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 b189387e..28c1b7b6 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -12,8 +12,6 @@ import java.net.InetSocketAddress; import java.util.Collection; import java.util.Collections; import java.util.List; -import java.util.Queue; -import java.util.concurrent.ConcurrentLinkedQueue; import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; @@ -37,7 +35,6 @@ public final class UserConnection implements ProxiedPlayer public final Channel ch; final Packet1Login forgeLogin; final List loginMessages; - public Queue packetQueue = new ConcurrentLinkedQueue<>(); @Getter private final PendingConnection pendingConnection; @Getter @@ -162,7 +159,7 @@ public final class UserConnection implements ProxiedPlayer @Override public void sendMessage(String message) { - packetQueue.add( new Packet3Chat( message ) ); + ch.write( new Packet3Chat( message ) ); } @Override