In your new code, don't do this
sleep(4000);
new ConditionalSleep(200000) {
@Override
public boolean condition() throws InterruptedException {
return !myPlayer().isAnimating();
}
}.sleep();
Instead check if you're not animating and then fish, else if you're animating do nothing
if (!myPlay.isAnimating() {
fishingSpot.interact("Lure");
new ConditionalSleep(4000) {
@Override
public boolean condition() throws InterruptedException {
return myPlayer().isAnimating();
}
}.sleep();
} else {
// do nothing, we are fishing. ANTIBAN!
}