mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Incorrect comparison
This commit is contained in:
parent
e61af2d351
commit
d7aab0acbd
@ -49,7 +49,7 @@ public class WanderWaypointProvider implements WaypointProvider, Supplier<QuadTr
|
||||
double minDist = Double.MAX_VALUE;
|
||||
for (Location centre : regionCentres) {
|
||||
double d = centre.distanceSquared(npc.getStoredLocation());
|
||||
if (d > minDist) {
|
||||
if (d < minDist) {
|
||||
minDist = d;
|
||||
closestCentre = centre;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user