rewrite comment since we haven't used pos.getY() in literally YEARS

This commit is contained in:
Leijurv 2021-08-25 22:20:13 -07:00 committed by GitHub
parent 5e0fe6d897
commit 14178fcd14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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