recheck positionsToBreak every tick to prepare, fixes #42
This commit is contained in:
parent
ee8e44d314
commit
237ac85b6b
@ -124,9 +124,6 @@ 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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user