ImplPlayerSection

This commit is contained in:
Polaris_Light 2023-11-16 00:04:56 +08:00
parent 3c97193b70
commit a97096cddf
10 changed files with 146 additions and 17 deletions

View file

@ -41,7 +41,7 @@ namespace MinecraftClient.Protocol.Session
string serverHash = Crypto.CryptoHandler.GetServerHash(ServerIDhash, ServerPublicKey, Crypto.CryptoHandler.ClientAESPrivateKey);
if (type == LoginType.mojang && ProtocolHandler.SessionCheck(PlayerID, ID, serverHash))
return true;
if (type == LoginType.Yggdrasil && ProtocolHandler.YggdrasilSessionCheck(PlayerID, ID, serverHash))
if (type == LoginType.yggdrasil && ProtocolHandler.YggdrasilSessionCheck(PlayerID, ID, serverHash))
return true;
return false;
}