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) {
|
protected boolean prepared(MovementState state) {
|
||||||
|
if (state.getStatus() == MovementStatus.WAITING) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
boolean somethingInTheWay = false;
|
boolean somethingInTheWay = false;
|
||||||
for (BlockPos blockPos : positionsToBreak) {
|
for (BlockPos blockPos : positionsToBreak) {
|
||||||
if (!MovementHelper.canWalkThrough(blockPos)) {
|
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)
|
// 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()) {
|
switch (state.getStatus()) {
|
||||||
case WAITING:
|
case WAITING:
|
||||||
|
state.setStatus(MovementStatus.RUNNING);
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -52,6 +52,7 @@ public class MovementDiagonal extends Movement {
|
|||||||
super.updateState(state);
|
super.updateState(state);
|
||||||
switch (state.getStatus()) {
|
switch (state.getStatus()) {
|
||||||
case WAITING:
|
case WAITING:
|
||||||
|
state.setStatus(MovementState.MovementStatus.RUNNING);
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -56,6 +56,7 @@ public class MovementDownward extends Movement {
|
|||||||
super.updateState(state);
|
super.updateState(state);
|
||||||
switch (state.getStatus()) {
|
switch (state.getStatus()) {
|
||||||
case WAITING:
|
case WAITING:
|
||||||
|
state.setStatus(MovementState.MovementStatus.RUNNING);
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -103,6 +103,7 @@ public class MovementPillar extends Movement {
|
|||||||
super.updateState(state);
|
super.updateState(state);
|
||||||
switch (state.getStatus()) {
|
switch (state.getStatus()) {
|
||||||
case WAITING:
|
case WAITING:
|
||||||
|
state.setStatus(MovementState.MovementStatus.RUNNING);
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -127,6 +127,7 @@ public class MovementTraverse extends Movement {
|
|||||||
super.updateState(state);
|
super.updateState(state);
|
||||||
switch (state.getStatus()) {
|
switch (state.getStatus()) {
|
||||||
case WAITING:
|
case WAITING:
|
||||||
|
state.setStatus(MovementState.MovementStatus.RUNNING);
|
||||||
case RUNNING:
|
case RUNNING:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user