mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-04-15 07:44:25 -04:00
Handle 1.20.5 login hello authenticate flag
This commit is contained in:
parent
5ad8268f9b
commit
e690a1eb10
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ public class LoginPacketHandler extends PacketHandler {
|
|||
final SecretKey secretKey = CryptUtil.generateSecretKey();
|
||||
final String serverHash = new BigInteger(CryptUtil.computeServerIdHash(loginHelloPacket.serverId, publicKey, secretKey)).toString(16);
|
||||
|
||||
boolean auth = true;
|
||||
if (this.proxyConnection.getServerVersion().olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
||||
boolean auth = !(packet instanceof S2CLoginHelloPacket1_20_5 packet1_20_5) || packet1_20_5.authenticate;
|
||||
if (auth && this.proxyConnection.getServerVersion().olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
||||
auth = this.proxyConnection.getUserConnection().get(ProtocolMetadataStorage.class).authenticate;
|
||||
}
|
||||
if (auth) {
|
||||
|
|
Loading…
Add table
Reference in a new issue