This commit is contained in:
Leijurv 2018-08-18 12:33:00 -07:00
parent 237ac85b6b
commit d60e0ced67
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
6 changed files with 8 additions and 0 deletions

View File

@ -124,6 +124,9 @@ public abstract class Movement implements Helper, MovementHelper {
}
protected boolean prepared(MovementState state) {
if (state.getStatus() == MovementStatus.WAITING) {
return true;
}
boolean somethingInTheWay = false;
for (BlockPos blockPos : positionsToBreak) {
if (!MovementHelper.canWalkThrough(blockPos)) {

View File

@ -119,6 +119,7 @@ public class MovementAscend extends Movement {
// for efficiency in ascending minimal height staircases, which is just repeated MovementAscend, so that it doesn't bonk its head on the ceiling repeatedly)
switch (state.getStatus()) {
case WAITING:
state.setStatus(MovementStatus.RUNNING);
case RUNNING:
break;
default:

View File

@ -52,6 +52,7 @@ public class MovementDiagonal extends Movement {
super.updateState(state);
switch (state.getStatus()) {
case WAITING:
state.setStatus(MovementState.MovementStatus.RUNNING);
case RUNNING:
break;
default:

View File

@ -56,6 +56,7 @@ public class MovementDownward extends Movement {
super.updateState(state);
switch (state.getStatus()) {
case WAITING:
state.setStatus(MovementState.MovementStatus.RUNNING);
case RUNNING:
break;
default:

View File

@ -103,6 +103,7 @@ public class MovementPillar extends Movement {
super.updateState(state);
switch (state.getStatus()) {
case WAITING:
state.setStatus(MovementState.MovementStatus.RUNNING);
case RUNNING:
break;
default:

View File

@ -127,6 +127,7 @@ public class MovementTraverse extends Movement {
super.updateState(state);
switch (state.getStatus()) {
case WAITING:
state.setStatus(MovementState.MovementStatus.RUNNING);
case RUNNING:
break;
default: