Make sendMessage work again

This commit is contained in:
md_5 2013-03-09 14:29:54 +11:00
parent f0766ebcfb
commit 0c69814db7

View File

@ -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<PacketFAPluginMessage> loginMessages;
public Queue<DefinedPacket> 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