Fix offline LAN encrypted login

This commit is contained in:
Anon 2026-06-05 22:09:52 +02:00
parent 5f0ca8837f
commit 4bbc751cc1
3 changed files with 42 additions and 2 deletions

View file

@ -550,7 +550,7 @@ namespace MinecraftClient.Protocol.Handlers
if (Settings.Config.Logging.DebugMessages)
ConsoleIO.WriteLineFormatted("§8" + Translations.debug_crypto, acceptnewlines: true);
if (serverIDhash != "-")
if (serverIDhash != "-" && !string.IsNullOrWhiteSpace(sessionID))
{
ConsoleIO.WriteLine(Translations.mcc_session);
string serverHash = CryptoHandler.GetServerHash(serverIDhash, serverPublicKey, secretKey);

View file

@ -4258,7 +4258,7 @@ namespace MinecraftClient.Protocol.Handlers
log.Debug($"§8{Translations.debug_crypto}");
if (serverIDhash != "-")
if (serverIDhash != "-" && !string.IsNullOrWhiteSpace(sessionID))
{
log.Info(Translations.mcc_session);