fix cave max size calculation

This commit is contained in:
Julian Krings committed 2025-06-24 16:53:26 +02:00
1 parent a802edc375
commit cca0bed482
1 file changed
+1 -1
@@ -114,6 +114,6 @@ public class IrisCave extends IrisRegistrant {
}
public int getMaxSize(IrisData data, int depth) {
return getWorm().getMaxDistance() + fork.getMaxRange(data, depth);
return (int) (Math.ceil(getWorm().getGirth().getMax() * 2) + getWorm().getMaxDistance() + fork.getMaxRange(data, depth));
}
}