Add an extra autorelog guard on HandleFailure

This commit is contained in:
breadbyte 2024-03-17 02:10:14 +08:00
parent dc71332dd3
commit f5c7a2801f

View file

@ -759,6 +759,11 @@ namespace MinecraftClient
} }
} }
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) if (offlinePrompt == null)
{ {
ConsoleInteractive.ConsoleReader.StopReadThread(); ConsoleInteractive.ConsoleReader.StopReadThread();