I'm feeling so stupid. Never thought about an else statement in the getState...
Testing this now.
@@Token,
I think it's still a problem in the CHOP Case:
case CHOP:
Entity treeToChop = objects.closest(tree);
GroundItem birdNest = groundItems.closest("Bird nest");
if (treeToChop != null && ) {
camera.toEntity(treeToChop);
treeToChop.interact("Chop down");
StatusUpdate = "Chopping " + tree + " logs";
new ConditionalSleep(10000) {
public boolean condition() throws InterruptedException {
return treeToChop == null;
}
}.sleep();
}
else{
sleep(random(500,700));
}
if (birdNest != null && pickupBirdsNests == true) {
birdNest.interact("Take");
}
break;
EDIT: I've removed the check @bank in the walk case. Testing it again now. It now walks to the tree's even when it's not in the bank.