From d23e9e295bc8f03868560cbf2376668c6b2b0072 Mon Sep 17 00:00:00 2001 From: Ic3Tank <61137113+IceTank@users.noreply.github.com> Date: Fri, 16 Feb 2024 20:25:52 +0100 Subject: [PATCH] Move cleanupBot to fix sticky controls --- src/ThePathfinder.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ThePathfinder.ts b/src/ThePathfinder.ts index edfc155..a752514 100644 --- a/src/ThePathfinder.ts +++ b/src/ThePathfinder.ts @@ -589,6 +589,7 @@ export class ThePathfinder { async cleanupAll (goal: goals.Goal, lastMove?: MovementExecutor): Promise { 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