forgot one extra check

This commit is contained in:
Leijurv
2019-02-13 18:38:46 -08:00
parent dbd760fbcb
commit bffeb9c862

View File

@@ -489,6 +489,9 @@ public class PathExecutor implements IPathExecutor, Helper {
if (MovementHelper.avoidWalkingInto(ctx.world().getBlockState(current.getSrc().up(3)).getBlock())) {
return false;
}
if (MovementHelper.avoidWalkingInto(ctx.world().getBlockState(next.getDest().up(2)).getBlock())) {
return false;
}
return true;
}