👌formatting in of comments

This commit is contained in:
ZacSharp
2020-10-15 21:48:17 +02:00
parent 0c7741120a
commit 3cdbc4cb83
4 changed files with 5 additions and 5 deletions

View File

@@ -391,7 +391,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
}
double current = goal.heuristic(currentPos.x, currentPos.y, currentPos.z);
double start = goal.heuristic(startPosition.x, startPosition.y, startPosition.z);
if (current == start) {//can't check above because current and start can be equal even if currentPos and startPosition are not
if (current == start) {// can't check above because current and start can be equal even if currentPos and startPosition are not
return Optional.empty();
}
double eta = Math.abs(current - goal.heuristic()) * ticksElapsedSoFar / Math.abs(start - current);