Skip to content

Commit d4b5de2

Browse files
Michael Zarglisclaude
andcommitted
fix(webwalker): don't advance path index on failed door traversal
When sleepUntil times out waiting for the player to pass through a door/gate, return false instead of advancing minPathIndex and reporting success. This lets the next loop iteration retry the same door. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 62b433c commit d4b5de2

File tree

1 file changed

+1
-0
lines changed
  • runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/walker

1 file changed

+1
-0
lines changed

runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/walker/Rs2Walker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,7 @@ private static boolean handleDoors(List<WorldPoint> path, int index) {
12271227

12281228
if (!passedThrough) {
12291229
log.warn("Timed out waiting to pass through door/gate from {} to {}", startPos, destPos);
1230+
return false;
12301231
}
12311232
}
12321233

0 commit comments

Comments
 (0)