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");
|
Filter<Item> ringFilter = item -> item.getName().startsWith("Ring of dueling");
|
||||||
if (Inventory.contains(ringFilter)) {
|
if (Inventory.contains(ringFilter)) {
|
||||||
Item ring = Inventory.get(ringFilter);
|
Inventory.interact(ringFilter, "Wear");
|
||||||
ring.interact();
|
|
||||||
MethodProvider.sleepUntil(() -> !Inventory.contains(ringFilter), Calculations.random(2000, 3000));
|
MethodProvider.sleepUntil(() -> !Inventory.contains(ringFilter), Calculations.random(2000, 3000));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +59,7 @@ public class GoToSawmill extends TaskNode {
|
|||||||
if (w != null && w.isVisible()) {
|
if (w != null && w.isVisible()) {
|
||||||
w.interact();
|
w.interact();
|
||||||
MethodProvider.sleepUntil(() -> NEAR_BALLOON.distance() > 50, Calculations.random(5000, 5500));
|
MethodProvider.sleepUntil(() -> NEAR_BALLOON.distance() > 50, Calculations.random(5000, 5500));
|
||||||
|
MethodProvider.sleep(800, 1200);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Calculations.random(250, 400);
|
return Calculations.random(250, 400);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user