Codacity again for the same and syntax

dab
This commit is contained in:
ZacSharp 2020-08-20 23:16:59 +02:00 committed by GitHub
parent b7d1ba1fa5
commit ea35a3478f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,11 +77,11 @@ public class MovementDiagonal extends Movement {
}
//we are in a likely unwalkable corner, check for a supporting block
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))
|| 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;