From 2159773723c7b392a8ec2c67c57cca50e4ffb3d9 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 1 Jul 2021 10:09:06 +1000 Subject: [PATCH] requested changes - tabs changed to 4 spaces - fixed checking if block place is behind player --- .../pathing/movement/movements/MovementParkour.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java index 162c20cc..f7b84b58 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java @@ -156,19 +156,19 @@ public class MovementParkour extends Movement { IBlockState toReplace = context.get(destX, y - 1, destZ); double placeCost = context.costOfPlacingAt(destX, y - 1, destZ, toReplace); if (placeCost >= COST_INF) { - continue; + continue; } if (!MovementHelper.isReplaceable(destX, y - 1, destZ, toReplace, context.bsi)) { - continue; + continue; } if (!checkOvershootSafety(context.bsi, destX + xDiff, y, destZ + zDiff)) { - continue; + continue; } for (int j = 0; j < 5; j++) { int againstX = destX + HORIZONTALS_BUT_ALSO_DOWN_____SO_EVERY_DIRECTION_EXCEPT_UP[j].getXOffset(); int againstY = y - 1 + HORIZONTALS_BUT_ALSO_DOWN_____SO_EVERY_DIRECTION_EXCEPT_UP[j].getYOffset(); int againstZ = destZ + HORIZONTALS_BUT_ALSO_DOWN_____SO_EVERY_DIRECTION_EXCEPT_UP[j].getZOffset(); - if (againstX == x + xDiff * 3 && againstZ == z + zDiff * 3) { // we can't turn around that fast + if (againstX == destX - xDiff && againstZ == destZ - zDiff) { // we can't turn around that fast continue; } if (MovementHelper.canPlaceAgainst(context.bsi, againstX, againstY, againstZ)) {