Fix interacting too fast on some obstacles
This commit is contained in:
parent
f9d49d820b
commit
20fc42d999
@ -137,6 +137,8 @@ public class HandleObstacle extends TaskNode {
|
||||
hoverMap.put(current.getID(), currentObject.getBoundingBox());
|
||||
}
|
||||
|
||||
MethodContext.sleepUntil(Util::playerIsIdle, Calculations.random(3000, 3500));
|
||||
|
||||
currentObject.interact();
|
||||
|
||||
Rectangle hoverRect = hoverMap.get(current.getNext().getID());
|
||||
@ -144,10 +146,6 @@ public class HandleObstacle extends TaskNode {
|
||||
Mouse.move(hoverRect);
|
||||
}
|
||||
|
||||
if (!Util.sleepUntilMoving(Calculations.random(1200, 1800))) {
|
||||
return Calculations.random( 180, 350);
|
||||
}
|
||||
|
||||
Util.sleepUntilMovingAndAnimating(Calculations.random(6000, 7000));
|
||||
|
||||
return Calculations.random(180, 350);
|
||||
|
Loading…
x
Reference in New Issue
Block a user