Has anyone else noticed a delay in the break condition?
For example, if I set it to drink energy pots when below a certain run energy, it will pause for like 10 seconds before doing it.
Is there a way around this or to remove the built in sleep?
Here is my code. It won't try to drink until like 10seconds after the condition is met.
if (getSettings().getRunEnergy()>=50 {
WebWalkEvent webWalkEvent = new WebWalkEvent(INSIDE_BANK);
webWalkEvent.setBreakCondition(new Condition() {
@Override
public boolean evaluate() {
return getSettings().getRunEnergy()<50;
}
});
execute(webWalkEvent);
} else {
getInventory().interact("Drink","f->f.getName.contains("Energy"));
}