Fix wearing ring and wait for scene load after traveling
This commit is contained in:
parent
8623509eb4
commit
d7f98826b1
@ -36,8 +36,7 @@ public class GoToSawmill extends TaskNode {
|
||||
|
||||
Filter<Item> ringFilter = item -> item.getName().startsWith("Ring of dueling");
|
||||
if (Inventory.contains(ringFilter)) {
|
||||
Item ring = Inventory.get(ringFilter);
|
||||
ring.interact();
|
||||
Inventory.interact(ringFilter, "Wear");
|
||||
MethodProvider.sleepUntil(() -> !Inventory.contains(ringFilter), Calculations.random(2000, 3000));
|
||||
}
|
||||
|
||||
@ -60,6 +59,7 @@ public class GoToSawmill extends TaskNode {
|
||||
if (w != null && w.isVisible()) {
|
||||
w.interact();
|
||||
MethodProvider.sleepUntil(() -> NEAR_BALLOON.distance() > 50, Calculations.random(5000, 5500));
|
||||
MethodProvider.sleep(800, 1200);
|
||||
}
|
||||
|
||||
return Calculations.random(250, 400);
|
||||
|
Loading…
x
Reference in New Issue
Block a user