Im having trouble with one piece of code in particular this part
private boolean walkTile(Position p) throws InterruptedException {
mouse.move(new MinimapTileDestination(bot, p), false);
sleep(random(150, 250));
mouse.click(false);
int failsafe = 0;
while (failsafe <10 && myPlayer().getPosition().distance(p) >2) {
sleep(200);
failsafe++;
if (myPlayer().isMoving())
failsafe = 0;
}
if (failsafe == 10)
return false;
return true;
}
eclipse is telling me the constructer minimaptiledestination (bot, position) is undefined.
any ideas as to why this is?