Stop trying to be Forge for now.

This commit is contained in:
md_5 2013-03-19 12:07:59 +11:00
parent 1dd661f619
commit 3fed94fbf2

View File

@ -52,15 +52,11 @@ public class InitialHandler extends PacketHandler implements PendingConnection
private Channel ch; private Channel ch;
@Getter @Getter
private final ListenerInfo listener; private final ListenerInfo listener;
private Packet1Login forgeLogin; private Packet1Login forgeLogin; // TODO: Remove for now?
private Packet2Handshake handshake; private Packet2Handshake handshake;
private PacketFDEncryptionRequest request; private PacketFDEncryptionRequest request;
private List<PacketFAPluginMessage> loginMessages = new ArrayList<>(); private List<PacketFAPluginMessage> loginMessages = new ArrayList<>();
private State thisState = State.HANDSHAKE; private State thisState = State.HANDSHAKE;
private static final PacketFAPluginMessage forgeMods = new PacketFAPluginMessage( "FML", new byte[]
{
0, 0, 0, 0, 0, 2
} );
private enum State private enum State
{ {
@ -123,7 +119,6 @@ public class InitialHandler extends PacketHandler implements PendingConnection
Preconditions.checkState( limit <= 0 || bungee.getPlayers().size() < limit, "Server is full!" ); Preconditions.checkState( limit <= 0 || bungee.getPlayers().size() < limit, "Server is full!" );
this.handshake = handshake; this.handshake = handshake;
ch.write( forgeMods );
ch.write( request = EncryptionUtil.encryptRequest() ); ch.write( request = EncryptionUtil.encryptRequest() );
thisState = State.ENCRYPT; thisState = State.ENCRYPT;
} }