mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix offline LAN encrypted login
This commit is contained in:
parent
5f0ca8837f
commit
4bbc751cc1
3 changed files with 42 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue