mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-12 03:24:14 +00:00
chore:
- Replaced IrisDimensionCarvingEntry shrink scaling with createScaledGenerator Ref.: https://github.com/VolmitSoftware/Iris/issues/1251
This commit is contained in:
+3
-3
@@ -87,7 +87,7 @@ public class IrisDimensionCarvingEntry {
|
||||
}
|
||||
|
||||
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) {
|
||||
@@ -98,8 +98,8 @@ public class IrisDimensionCarvingEntry {
|
||||
return new RNG(childrenGeneratorSeed).nextParallelRNG(CHILDREN_SEED_SALT);
|
||||
}
|
||||
|
||||
private CNG scaleByShrinkFactor(CNG generator) {
|
||||
return generator.bake().scale(Math.max(MINIMUM_CHILD_SHRINK_FACTOR, getChildShrinkFactor())).bake();
|
||||
private double childShrinkFactor() {
|
||||
return Math.max(MINIMUM_CHILD_SHRINK_FACTOR, getChildShrinkFactor());
|
||||
}
|
||||
|
||||
private long hashOfId() {
|
||||
|
||||
Reference in New Issue
Block a user