Compare commits

...

2 Commits

Author SHA1 Message Date
deaba10e18 Don't walk right after walking custom path 2021-10-20 00:16:03 +02:00
aa5d3627a2 Don't draw strings when UI is hidden 2021-10-20 00:15:43 +02:00
2 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class HandleObstacle extends TaskNode {
} }
} }
while (!currentObject.isOnScreen() || currentObject.distance() > 15) { while (!isWalking && (!currentObject.isOnScreen() || currentObject.distance() > 15)) {
isWalking = true; isWalking = true;
Walking.walk(currentObject); Walking.walk(currentObject);
MethodContext.sleepUntil(() -> Players.localPlayer().distance(currentObject) < 3, Calculations.random(5000, 5500)); MethodContext.sleepUntil(() -> Players.localPlayer().distance(currentObject) < 3, Calculations.random(5000, 5500));

View File

@ -152,6 +152,8 @@ public class UI implements MouseListener {
} }
public void drawString(String s, Color color, int xPadding) { public void drawString(String s, Color color, int xPadding) {
if (hide) return;
xPadding += 5; xPadding += 5;
int yPadding = 35; int yPadding = 35;
int lineSpacing = 20; int lineSpacing = 20;