From 4e11d92d19561d77c4c9175a0d400a581efec8c4 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 1 Oct 2018 19:23:13 -0700 Subject: [PATCH] fix parkour cost calculation --- .../baritone/pathing/movement/movements/MovementParkour.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java index 43391b01..7124b5f3 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementParkour.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementParkour.java @@ -122,7 +122,7 @@ public class MovementParkour extends Movement { continue; } if (MovementHelper.canPlaceAgainst(againstX, y - 1, againstZ)) { - return new MoveResult(destX, y, destZ, costFromJumpDistance(i) + context.placeBlockCost()); + return new MoveResult(destX, y, destZ, costFromJumpDistance(4) + context.placeBlockCost()); } } return IMPOSSIBLE; @@ -137,7 +137,7 @@ public class MovementParkour extends Movement { case 4: return SPRINT_ONE_BLOCK_COST * 4; default: - throw new IllegalStateException("LOL"); + throw new IllegalStateException("LOL " + dist); } }