mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-23 16:39:22 +00:00
woops
This commit is contained in:
@@ -118,11 +118,11 @@ public class MantleJigsawComponent extends IrisMantleComponent {
|
|||||||
Position2 pos = new Position2(x, z);
|
Position2 pos = new Position2(x, z);
|
||||||
for (String structure : distances.keySet()) {
|
for (String structure : distances.keySet()) {
|
||||||
if (!cache.containsKey(structure)) continue;
|
if (!cache.containsKey(structure)) continue;
|
||||||
double maxDist = distances.get(structure);
|
double minDist = distances.get(structure);
|
||||||
maxDist = maxDist * maxDist;
|
minDist = minDist * minDist;
|
||||||
for (Position2 sPos : cache.get(structure)) {
|
for (Position2 sPos : cache.get(structure)) {
|
||||||
double dist = distanceCache.computeIfAbsent(sPos, position2 -> position2.distance(pos));
|
double dist = distanceCache.computeIfAbsent(sPos, position2 -> position2.distance(pos));
|
||||||
if (dist > maxDist) return true;
|
if (minDist > dist) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user