if (!Settings.location.getArea().contains(myPosition())) { //If not in woodcutting area
log("Left area, heading back...");
targetPosition = Settings.location.getTreePosition(); //Get area centre position
localWalker.walk(targetPosition, true); //Move to position
break;
}
Sometimes when I'm walking, the player doesn't stop on the exact target location but nearby.
When this happens the player doesn't want to move anymore.
As you can see in the code sample, I'm catching this however the player doesn't start moving anymore on calling walk.