Skip to content

Commit

Permalink
Use result of default PathObjectHandler wait
Browse files Browse the repository at this point in the history
  • Loading branch information
FALSkills committed Nov 5, 2023
1 parent 4a0937b commit c52659c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private static boolean handle(List<RSTile> path, RSObject object, PathAnalyzer.D
}
}

WaitFor.condition(General.random(8500, 11000), () -> {
WaitFor.Return result = WaitFor.condition(General.random(8500, 11000), () -> {
DoomsToggle.handleToggle();
PathAnalyzer.DestinationDetails destinationDetails1 = PathAnalyzer.furthestReachableTile(path);
if (NPCInteraction.isConversationWindowUp()) {
Expand All @@ -527,7 +527,7 @@ private static boolean handle(List<RSTile> path, RSObject object, PathAnalyzer.D
if (strongholdDoor){
General.sleep(800, 1200);
}
return true;
return result == WaitFor.Return.SUCCESS;
}

public static RSObject[] getInteractiveObjects(int x, int y, int z, PathAnalyzer.DestinationDetails destinationDetails){
Expand Down

0 comments on commit c52659c

Please sign in to comment.