Skip to content

Commit f5c7a28

Browse files
committed
Add an extra autorelog guard on HandleFailure
1 parent dc71332 commit f5c7a28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MinecraftClient/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,11 @@ public static void HandleFailure(string? errorMessage = null, bool versionError
759759
}
760760
}
761761

762+
if (disconnectReason.HasValue) {
763+
if (ChatBots.AutoRelog.OnDisconnectStatic(disconnectReason.Value, errorMessage!))
764+
return; //AutoRelog is triggering a restart of the client, don't turn on the offline prompt
765+
}
766+
762767
if (offlinePrompt == null)
763768
{
764769
ConsoleInteractive.ConsoleReader.StopReadThread();

0 commit comments

Comments
 (0)