this.cancelReason = new InvalidProtocolException(client);
}
} else if (packetId == ID_OPEN_CONNECTION_REPLY_2) {
OpenConnectionResponseTwo connectionResponseTwo = new OpenConnectionResponseTwo(packet);
connectionResponseTwo.decode();
<BUG>if (connectionResponseTwo.magic == true && connectionResponseTwo.serverGuid == this.guid
&& connectionResponseTwo.maximumTransferUnit == this.maximumTransferUnit) {</BUG>
this.loginPackets[1] = true;
if (connectionResponseTwo.encryptionEnabled == true) {
client.getListener().onWarning(Warning.ENCRYPTION_ENABLED);

this.cancelReason = new InvalidProtocolException(client);
}
} else if (packetId == ID_OPEN_CONNECTION_REPLY_2) {
OpenConnectionResponseTwo connectionResponseTwo = new OpenConnectionResponseTwo(packet);
connectionResponseTwo.decode();
if (!connectionResponseTwo.failed() && connectionResponseTwo.magic == true
&& connectionResponseTwo.serverGuid == this.guid
&& connectionResponseTwo.maximumTransferUnit == this.maximumTransferUnit) {
this.loginPackets[1] = true;
if (connectionResponseTwo.encryptionEnabled == true) {
client.getListener().onWarning(Warning.ENCRYPTION_ENABLED);
