Skip to content

Commit

Permalink
Always try to autostart after farming stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Mar 30, 2024
1 parent d6061d1 commit 138834f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CS2Interface/CS2Interface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ public async Task OnBotLoggedOn(Bot bot) {
}

public async Task OnBotFarmingFinished(Bot bot, bool farmedSomething) {
if (farmedSomething) {
await TryAutoStart(bot).ConfigureAwait(false);
}
await TryAutoStart(bot).ConfigureAwait(false);
}

public Task OnBotFarmingStarted(Bot bot) {
Expand All @@ -100,10 +98,8 @@ public Task OnBotFarmingStarted(Bot bot) {
return Task.FromResult(0);
}

public Task OnBotFarmingStopped(Bot bot) {
ClientHandler.ClientHandlers[bot.BotName].ForceStop();

return Task.FromResult(0);
public async Task OnBotFarmingStopped(Bot bot) {
await TryAutoStart(bot).ConfigureAwait(false);
}
}
}

0 comments on commit 138834f

Please sign in to comment.