Skip to content

Commit

Permalink
Move cleanupBot to fix sticky controls
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTank committed Feb 16, 2024
1 parent facd650 commit d23e9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ThePathfinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ export class ThePathfinder {
async cleanupAll (goal: goals.Goal, lastMove?: MovementExecutor): Promise<void> {
await this.cleanupBot()
if (lastMove != null && !this.cancelCalculation) await goal.onFinish(lastMove)
await this.cleanupBot()
this.bot.chat(this.world.getCacheSize())
this.world.clearCache()
this.cancelCalculation = false
Expand Down

0 comments on commit d23e9e2

Please sign in to comment.