This is throwing NPEs at me.. Here's what I'm doing:
try {
if(splineWalk.splineWalk(pathfinder, thisMustBeTrueToKeepWalking, toBankMINING)) {
System.out.println("My condition is not true anymore, and broken, so I have met it. that means," +
"based on my condition im (myX() > 234234 && myZ() < 234234234)"); //Im here! lets do something
}
}
catch (InterruptedException ignored) {
// :'(
}
The path looks like this:
private final Position[] toBankMINING = {
new Position(3286, 3372,0),
new Position(3292, 3379,0),
new Position(3291, 3388,0),
new Position(3290, 3397,0),
new Position(3289, 3406,0),
new Position(3289, 3415,0),
new Position(3284, 3423,0),
new Position(3276, 3428,0),
new Position(3267, 3431,0),
new Position(3258, 3431,0),
new Position(3253, 3423,0),
new Position(3254, 3419,0)
};