Skip to content

Commit

Permalink
Add an extra autorelog guard on HandleFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
breadbyte committed Mar 16, 2024
1 parent dc71332 commit f5c7a28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MinecraftClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,11 @@ public static void HandleFailure(string? errorMessage = null, bool versionError
}
}

if (disconnectReason.HasValue) {
if (ChatBots.AutoRelog.OnDisconnectStatic(disconnectReason.Value, errorMessage!))
return; //AutoRelog is triggering a restart of the client, don't turn on the offline prompt
}

if (offlinePrompt == null)
{
ConsoleInteractive.ConsoleReader.StopReadThread();
Expand Down

0 comments on commit f5c7a28

Please sign in to comment.