Don't walk right after walking custom path
This commit is contained in:
parent
aa5d3627a2
commit
deaba10e18
@ -187,7 +187,7 @@ public class HandleObstacle extends TaskNode {
|
||||
}
|
||||
}
|
||||
|
||||
while (!currentObject.isOnScreen() || currentObject.distance() > 15) {
|
||||
while (!isWalking && (!currentObject.isOnScreen() || currentObject.distance() > 15)) {
|
||||
isWalking = true;
|
||||
Walking.walk(currentObject);
|
||||
MethodContext.sleepUntil(() -> Players.localPlayer().distance(currentObject) < 3, Calculations.random(5000, 5500));
|
||||
|
Loading…
x
Reference in New Issue
Block a user