mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 21:40:05 +00:00
chore:
- Replaced IrisDimensionCarvingEntry shrink scaling with createScaledGenerator Ref.: https://github.com/VolmitSoftware/Iris/issues/1251
This commit is contained in:
1 parent
1544c34f44
commit
76d71f8344
1 file changed
+3
-3
+3
-3
@@ -87,7 +87,7 @@ public class IrisDimensionCarvingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private CNG createChildrenGenerator(long childrenGeneratorSeed, IrisData data) {
|
private CNG createChildrenGenerator(long childrenGeneratorSeed, IrisData data) {
|
||||||
return scaleByShrinkFactor(getChildStyle().createNoCache(deriveChildStyleSeed(childrenGeneratorSeed), data));
|
return getChildStyle().createScaledGenerator(deriveChildStyleSeed(childrenGeneratorSeed), data, childShrinkFactor());
|
||||||
}
|
}
|
||||||
|
|
||||||
long deriveChildrenGeneratorSeed(long worldSeed) {
|
long deriveChildrenGeneratorSeed(long worldSeed) {
|
||||||
@@ -98,8 +98,8 @@ public class IrisDimensionCarvingEntry {
|
|||||||
return new RNG(childrenGeneratorSeed).nextParallelRNG(CHILDREN_SEED_SALT);
|
return new RNG(childrenGeneratorSeed).nextParallelRNG(CHILDREN_SEED_SALT);
|
||||||
}
|
}
|
||||||
|
|
||||||
private CNG scaleByShrinkFactor(CNG generator) {
|
private double childShrinkFactor() {
|
||||||
return generator.bake().scale(Math.max(MINIMUM_CHILD_SHRINK_FACTOR, getChildShrinkFactor())).bake();
|
return Math.max(MINIMUM_CHILD_SHRINK_FACTOR, getChildShrinkFactor());
|
||||||
}
|
}
|
||||||
|
|
||||||
private long hashOfId() {
|
private long hashOfId() {
|
||||||
|
|||||||
Reference in new issue
Block a user