mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 13:15:35 +01:00
Stop trying to be Forge for now.
This commit is contained in:
parent
1dd661f619
commit
3fed94fbf2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user