sigh
This commit is contained in:
parent
237ac85b6b
commit
d60e0ced67
@ -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)) {
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user