Fix a couple of things I missed

This commit is contained in:
scorbett123 2022-06-08 14:20:25 +01:00
parent e7c357ab7f
commit 868c023dbd
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ public class MovementDescend extends Movement {
// and potentially replace the water we're going to fall into
return false;
}
if (!context.precomputedData.canWalkThrough(context.bsi, destX, y - 2, destZ, below)) {
if (!MovementHelper.canWalkThrough(context, destX, y - 2, destZ, below)) {
return false;
}
double costSoFar = 0;

View File

@ -58,7 +58,7 @@ public class MovementDiagonal extends Movement {
}
@Override
protected boolean safeToCancel(MovementState state) { // TODO move this function to use precomputed data, not urgent as it only runs once a tick
protected boolean safeToCancel(MovementState state) {
//too simple. backfill does not work after cornering with this
//return context.precomputedData.canWalkOn(ctx, ctx.playerFeet().down());
EntityPlayerSP player = ctx.player();