Check carving sizes

This commit is contained in:
cyberpwn 2021-09-04 13:54:19 -04:00
parent d06445e04b
commit 9533b62ebf

View File

@ -111,6 +111,10 @@ public class IrisCarving {
max = Math.max(max, i.getSize(data)); max = Math.max(max, i.getSize(data));
} }
for (IrisRavinePlacer i : ravines) {
max = Math.max(max, i.getSize(data));
}
if (elipsoids.isNotEmpty()) { if (elipsoids.isNotEmpty()) {
max = (int) Math.max(elipsoids.stream().mapToDouble(IrisElipsoid::maxSize).max().getAsDouble(), max); max = (int) Math.max(elipsoids.stream().mapToDouble(IrisElipsoid::maxSize).max().getAsDouble(), max);
} }