Clean up formatting of initial handler a little.
This commit is contained in:
parent
6ad40aba66
commit
51e2570ddd
@ -111,8 +111,7 @@ public class InitialHandler extends PacketHandler implements Runnable, PendingCo
|
|||||||
Preconditions.checkState( thisState == State.HANDSHAKE, "Not expecting HANDSHAKE" );
|
Preconditions.checkState( thisState == State.HANDSHAKE, "Not expecting HANDSHAKE" );
|
||||||
this.handshake = handshake;
|
this.handshake = handshake;
|
||||||
stream.write( forgeMods );
|
stream.write( forgeMods );
|
||||||
request = EncryptionUtil.encryptRequest();
|
stream.write( request = EncryptionUtil.encryptRequest() );
|
||||||
stream.write( request );
|
|
||||||
thisState = State.ENCRYPT;
|
thisState = State.ENCRYPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,8 +142,8 @@ public class InitialHandler extends PacketHandler implements Runnable, PendingCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
stream.write( new PacketFCEncryptionResponse() );
|
stream.write( new PacketFCEncryptionResponse() );
|
||||||
stream = new PacketStream( new CipherInputStream( socket.getInputStream(),
|
stream = new PacketStream( new CipherInputStream( socket.getInputStream(), EncryptionUtil.getCipher( false, shared ) ),
|
||||||
EncryptionUtil.getCipher( false, shared ) ), new CipherOutputStream( socket.getOutputStream(), EncryptionUtil.getCipher( true, shared ) ), stream.getProtocol() );
|
new CipherOutputStream( socket.getOutputStream(), EncryptionUtil.getCipher( true, shared ) ), stream.getProtocol() );
|
||||||
|
|
||||||
thisState = State.LOGIN;
|
thisState = State.LOGIN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user