From d96e561a6f8c4cd086e08aaacf8589a9c7a7ba6f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 12 Oct 2013 15:30:32 +1100 Subject: [PATCH] Cleanup debug --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 8 -------- .../java/net/md_5/bungee/connection/InitialHandler.java | 9 --------- .../main/java/net/md_5/bungee/netty/PipelineUtils.java | 1 - 3 files changed, 18 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index 4ca384ad..a0a46cf9 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -83,14 +83,6 @@ public class ServerConnector extends PacketHandler user.getPendingConnects().remove( target ); } - @Override - public void handle(PacketWrapper packet) throws Exception - { - int packetID = DefinedPacket.readVarInt( packet.buf ); - System.out.println( packetID + " : " + packet.packet ); - super.handle( packet ); //To change body of generated methods, choose Tools | Templates. - } - @Override public void handle(LoginSuccess loginSuccess) throws Exception { diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index cb4a9bdd..a22e3b29 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -100,14 +100,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection this.ch = channel; } - @Override - public void handle(PacketWrapper packet) throws Exception - { - // int len = DefinedPacket.readVarInt( packet.buf ); - // int id = DefinedPacket.readVarInt( packet.buf ); - // throw new UnsupportedOperationException( "Cannot handle unknown packet at login!" ); - } - @Override public void exception(Throwable t) throws Exception { @@ -347,7 +339,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection { UUID = java.util.UUID.randomUUID().toString(); } - System.out.println( ch.getHandle().pipeline() ); unsafe.sendPacket( new LoginSuccess( UUID, getName() ) ); ch.setProtocol( Protocol.GAME ); diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java index af2899a9..24a24581 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java @@ -41,7 +41,6 @@ public class PipelineUtils BASE.initChannel( ch ); ch.pipeline().addAfter( FRAME_DECODER, PACKET_DECODER, new MinecraftDecoder( Protocol.HANDSHAKE, true ) ); ch.pipeline().addAfter( FRAME_PREPENDER, PACKET_ENCODER, new MinecraftEncoder( Protocol.HANDSHAKE, true ) ); - System.out.println( ch.pipeline() ); ch.pipeline().get( HandlerBoss.class ).setHandler( new InitialHandler( ProxyServer.getInstance(), ch.attr( LISTENER ).get() ) ); } };