Remove dead IP forward code, Mojang aint bringing that one back

This commit is contained in:
md_5 2014-02-08 09:19:22 +11:00
parent 4c5689d10e
commit f08df9555c

View File

@ -67,12 +67,6 @@ public class ServerConnector extends PacketHandler
{ {
this.ch = channel; this.ch = channel;
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF( "Login" );
out.writeUTF( user.getAddress().getHostString() );
out.writeInt( user.getAddress().getPort() );
// channel.write( new PluginMessage( "BungeeCord", out.toByteArray() ) ); MOJANG
Handshake originalHandshake = user.getPendingConnection().getHandshake(); Handshake originalHandshake = user.getPendingConnection().getHandshake();
Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 ); Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 );
if ( BungeeCord.getInstance().config.isIpFoward() ) if ( BungeeCord.getInstance().config.isIpFoward() )