Cleanup debug

This commit is contained in:
md_5 2013-10-12 15:30:32 +11:00
parent 26be0566f4
commit d96e561a6f
3 changed files with 0 additions and 18 deletions

View File

@ -83,14 +83,6 @@ public class ServerConnector extends PacketHandler
user.getPendingConnects().remove( target ); 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 @Override
public void handle(LoginSuccess loginSuccess) throws Exception public void handle(LoginSuccess loginSuccess) throws Exception
{ {

View File

@ -100,14 +100,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
this.ch = channel; 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 @Override
public void exception(Throwable t) throws Exception public void exception(Throwable t) throws Exception
{ {
@ -347,7 +339,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{ {
UUID = java.util.UUID.randomUUID().toString(); UUID = java.util.UUID.randomUUID().toString();
} }
System.out.println( ch.getHandle().pipeline() );
unsafe.sendPacket( new LoginSuccess( UUID, getName() ) ); unsafe.sendPacket( new LoginSuccess( UUID, getName() ) );
ch.setProtocol( Protocol.GAME ); ch.setProtocol( Protocol.GAME );

View File

@ -41,7 +41,6 @@ public class PipelineUtils
BASE.initChannel( ch ); BASE.initChannel( ch );
ch.pipeline().addAfter( FRAME_DECODER, PACKET_DECODER, new MinecraftDecoder( Protocol.HANDSHAKE, true ) ); ch.pipeline().addAfter( FRAME_DECODER, PACKET_DECODER, new MinecraftDecoder( Protocol.HANDSHAKE, true ) );
ch.pipeline().addAfter( FRAME_PREPENDER, PACKET_ENCODER, new MinecraftEncoder( 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() ) ); ch.pipeline().get( HandlerBoss.class ).setHandler( new InitialHandler( ProxyServer.getInstance(), ch.attr( LISTENER ).get() ) );
} }
}; };