fix cave max size calculation

This commit is contained in:
Julian Krings 2025-06-24 16:53:26 +02:00
parent a802edc375
commit cca0bed482
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2

View File

@ -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));
}
}