mirror of https://github.com/cabaletta/baritone
slightly better condition
This commit is contained in:
parent
3c691bb498
commit
9636e69a6b
|
@ -76,15 +76,14 @@ public class MovementDiagonal extends Movement {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//we are in a likely unwalkable corner, check for a supporting block
|
//we are in a likely unwalkable corner, check for a supporting block
|
||||||
if ((ctx.playerFeet().equals(new BetterBlockPos(src.x, src.y, dest.z))
|
if (ctx.playerFeet().equals(new BetterBlockPos(src.x, src.y, dest.z))
|
||||||
|| ctx.playerFeet().equals(new BetterBlockPos(dest.x, src.y, src.z)))
|
|| ctx.playerFeet().equals(new BetterBlockPos(dest.x, src.y, src.z))){
|
||||||
&& (MovementHelper.canWalkOn(ctx, new BetterBlockPos(x + offset, y, z + offset))
|
return (MovementHelper.canWalkOn(ctx, new BetterBlockPos(x + offset, y, z + offset))
|
||||||
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x + offset, y, z - offset))
|
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x + offset, y, z - offset))
|
||||||
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x - offset, y, z + offset))
|
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x - offset, y, z + offset))
|
||||||
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x - offset, y, z - offset)))){
|
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x - offset, y, z - offset)));
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue