don't cancel for any reason while doing a water bucket fall, fixes #98, fixes #123

This commit is contained in:
Leijurv
2018-10-01 14:50:20 -07:00
parent 810b92fbad
commit 41ffd4455d
3 changed files with 17 additions and 3 deletions
@@ -187,6 +187,14 @@ public abstract class Movement implements Helper, MovementHelper {
return true;
}
public boolean safeToCancel() {
return safeToCancel(currentState);
}
protected boolean safeToCancel(MovementState currentState) {
return false;
}
public boolean isFinished() {
return (currentState.getStatus() != MovementStatus.RUNNING
&& currentState.getStatus() != MovementStatus.PREPPING