Add additional error messages on login failures

See #976
This commit is contained in:
ORelio 2020-04-30 17:37:57 +02:00
parent 770a82e2d2
commit 116efc5e78
6 changed files with 28 additions and 7 deletions

View file

@ -863,7 +863,10 @@ namespace MinecraftClient.Protocol.Handlers
login_phase = false;
if (!pForge.CompleteForgeHandshake())
{
ConsoleIO.WriteLineFormatted("§8Forge Login Handshake did not complete successfully");
return false;
}
StartUpdating();
return true; //No need to check session or start encryption
@ -920,7 +923,10 @@ namespace MinecraftClient.Protocol.Handlers
login_phase = false;
if (!pForge.CompleteForgeHandshake())
{
ConsoleIO.WriteLineFormatted("§8Forge StartEncryption Handshake did not complete successfully");
return false;
}
StartUpdating();
return true;