9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

fix cave max size calculation

This commit is contained in:
Julian Krings
2025-06-24 16:53:26 +02:00
parent a802edc375
commit cca0bed482

View File

@@ -114,6 +114,6 @@ public class IrisCave extends IrisRegistrant {
} }
public int getMaxSize(IrisData data, int depth) { 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));
} }
} }