Fix a couple of things I missed
This commit is contained in:
parent
e7c357ab7f
commit
868c023dbd
@ -130,7 +130,7 @@ public class MovementDescend extends Movement {
|
|||||||
// and potentially replace the water we're going to fall into
|
// and potentially replace the water we're going to fall into
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!context.precomputedData.canWalkThrough(context.bsi, destX, y - 2, destZ, below)) {
|
if (!MovementHelper.canWalkThrough(context, destX, y - 2, destZ, below)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
double costSoFar = 0;
|
double costSoFar = 0;
|
||||||
|
@ -58,7 +58,7 @@ public class MovementDiagonal extends Movement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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
|
//too simple. backfill does not work after cornering with this
|
||||||
//return context.precomputedData.canWalkOn(ctx, ctx.playerFeet().down());
|
//return context.precomputedData.canWalkOn(ctx, ctx.playerFeet().down());
|
||||||
EntityPlayerSP player = ctx.player();
|
EntityPlayerSP player = ctx.player();
|
||||||
|
Loading…
Reference in New Issue
Block a user