From 3db5f2a67fb5e10137f51e8039528dbc0893313a Mon Sep 17 00:00:00 2001 From: StylexTV <56502218+StylexTV@users.noreply.github.com> Date: Sun, 22 Aug 2021 10:28:42 +0200 Subject: [PATCH] Update GoalBlock.java --- src/api/java/baritone/api/pathing/goals/GoalBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/pathing/goals/GoalBlock.java b/src/api/java/baritone/api/pathing/goals/GoalBlock.java index c85e5cad..0b7ff320 100644 --- a/src/api/java/baritone/api/pathing/goals/GoalBlock.java +++ b/src/api/java/baritone/api/pathing/goals/GoalBlock.java @@ -89,7 +89,7 @@ public class GoalBlock implements Goal, IGoalRenderPos { // if yDiff is 1 that means that pos.getY()-this.y==1 which means that we're 1 block below where we should be // therefore going from 0,0,0 to a GoalYLevel of pos.getY()-this.y is accurate - heuristic += GoalYLevel.calculate(yDiff, 0); + heuristic += GoalYLevel.calculate(0, yDiff); //use the pythagorean and manhattan mixture from GoalXZ heuristic += GoalXZ.calculate(xDiff, zDiff);