Invert check on Movement passability checkC

This commit is contained in:
Howard Stark 2018-08-05 21:57:53 -04:00
parent 2f06857858
commit a35a6409ab
No known key found for this signature in database
GPG Key ID: 9FA4E350B33067F3
1 changed files with 1 additions and 1 deletions

View File

@ -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))