mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix AutoRelog running twice on disconnection
Bug introduced in commit aaf1e8311b
Implement User-Initiated logout reason to ignore the second logout event
See #817
This commit is contained in:
parent
94e96b11dd
commit
52d98538b3
3 changed files with 35 additions and 24 deletions
|
|
@ -27,7 +27,7 @@ namespace MinecraftClient
|
|||
/// </summary>
|
||||
public abstract class ChatBot
|
||||
{
|
||||
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost };
|
||||
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost, UserLogout };
|
||||
|
||||
//Handler will be automatically set on bot loading, don't worry about this
|
||||
public void SetHandler(McTcpClient handler) { this._handler = handler; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue