mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
bugfix: Script Scheduler crashing after multiple reconnects
Fix Script bots accumulating across reconnects causing command spam
This commit is contained in:
commit
c4df73ab6a
1 changed files with 6 additions and 0 deletions
|
|
@ -149,6 +149,12 @@ namespace MinecraftClient.ChatBots
|
|||
}
|
||||
}
|
||||
|
||||
public override bool OnDisconnect(DisconnectReason reason, string message)
|
||||
{
|
||||
UnloadBot();
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
if (csharp) //C# compiled script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue