bugfix: Script Scheduler crashing after multiple reconnects

Fix Script bots accumulating across reconnects causing command spam
This commit is contained in:
Anon 2026-06-05 08:47:54 +02:00 committed by GitHub
commit c4df73ab6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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