From 14178fcd14f245a21da0240c3fa4b507a8a00446 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 25 Aug 2021 22:20:13 -0700 Subject: [PATCH] rewrite comment since we haven't used pos.getY() in literally YEARS --- src/api/java/baritone/api/pathing/goals/GoalBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/java/baritone/api/pathing/goals/GoalBlock.java b/src/api/java/baritone/api/pathing/goals/GoalBlock.java index 7a612ded..bd339549 100644 --- a/src/api/java/baritone/api/pathing/goals/GoalBlock.java +++ b/src/api/java/baritone/api/pathing/goals/GoalBlock.java @@ -87,8 +87,8 @@ public class GoalBlock implements Goal, IGoalRenderPos { public static double calculate(double xDiff, int yDiff, double zDiff) { double heuristic = 0; - // if yDiff is 1 that means that pos.getY()-this.y==1 which means that we're 1 block above where we should be - // therefore going from 0,pos.getY()-this.y,0 to a GoalYLevel of 0 is accurate + // if yDiff is 1 that means that currentY-goalY==1 which means that we're 1 block above where we should be + // therefore going from 0,yDiff,0 to a GoalYLevel of 0 is accurate heuristic += GoalYLevel.calculate(0, yDiff); //use the pythagorean and manhattan mixture from GoalXZ