forgot one extra check

This commit is contained in:
Leijurv 2019-02-13 18:38:46 -08:00
parent dbd760fbcb
commit bffeb9c862
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

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