Make Codacity happy
This commit is contained in:
parent
5f686c1c12
commit
b7d1ba1fa5
@ -78,12 +78,11 @@ public class MovementDiagonal extends Movement {
|
|||||||
//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))){
|
||||||
if (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))){
|
|| MovementHelper.canWalkOn(ctx, new BetterBlockPos(x - offset, y, z - offset)))
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user