Invert check on Movement passability checkC
This commit is contained in:
parent
2f06857858
commit
a35a6409ab
@ -132,7 +132,7 @@ public abstract class Movement implements Helper, MovementHelper {
|
||||
return true;
|
||||
}
|
||||
for(BlockPos blockPos : positionsToBreak) {
|
||||
if(MovementHelper.canWalkThrough(blockPos, BlockStateInterface.get(blockPos))) {
|
||||
if(!MovementHelper.canWalkThrough(blockPos, BlockStateInterface.get(blockPos))) {
|
||||
Optional<Rotation> reachable = LookBehaviorUtils.reachable(blockPos);
|
||||
reachable.ifPresent(rotation -> {
|
||||
state.setTarget(new MovementState.MovementTarget(Optional.empty(), reachable))
|
||||
|
Loading…
Reference in New Issue
Block a user