formatting and comments

This commit is contained in:
ZacSharp 2021-02-10 10:15:14 +01:00
parent ff068d374f
commit 5926369a56
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ public class GoalNear implements Goal, IGoalRenderPos {
@Override
public double heuristic() {// TODO less hacky solution
int range = (int) Math.ceil(Math.sqrt(rangeSq));
DoubleOpenHashSet maybeAlwaysInside = new DoubleOpenHashSet();
DoubleOpenHashSet maybeAlwaysInside = new DoubleOpenHashSet(); // see pull request #1978
double minOutside = Double.POSITIVE_INFINITY;
for (int dx = -range; dx <= range; dx++) {
for (int dy = -range; dy <= range; dy++) {

View File

@ -99,7 +99,7 @@ public class GoalRunAway implements Goal {
maxY = Math.max(minY, p.getY() + distance);
maxZ = Math.max(minZ, p.getZ() + distance);
}
DoubleOpenHashSet maybeAlwaysInside = new DoubleOpenHashSet();
DoubleOpenHashSet maybeAlwaysInside = new DoubleOpenHashSet(); // see pull request #1978
double minOutside = Double.POSITIVE_INFINITY;
for (int x = minX; x <= maxX; x++) {
for (int y = minY; y <= maxY; y++) {