But now it's working

This commit is contained in:
ZacSharp 2020-08-20 23:33:47 +02:00
parent ea35a3478f
commit 3c691bb498
1 changed files with 2 additions and 2 deletions

View File

@ -76,12 +76,12 @@ public class MovementDiagonal extends Movement {
return true;
}
//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)))
&& (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;