mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 14:30:14 +00:00
chore:
- Extracted magic value 0.0001 to MINIMUM_CHILD_SHRINK_FACTOR Ref.: https://github.com/VolmitSoftware/Iris/issues/1251
This commit is contained in:
1 parent
ffc409a4ac
commit
8f8a3b2355
1 file changed
+2
-1
+2
-1
@@ -32,6 +32,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||||||
@Data
|
@Data
|
||||||
public class IrisDimensionCarvingEntry {
|
public class IrisDimensionCarvingEntry {
|
||||||
private static final int CHILDREN_SEED_SALT = 2137;
|
private static final int CHILDREN_SEED_SALT = 2137;
|
||||||
|
private static final double MINIMUM_CHILD_SHRINK_FACTOR = 0.0001D;
|
||||||
private final transient AtomicCache<IrisBiome> realBiome = new AtomicCache<>(true);
|
private final transient AtomicCache<IrisBiome> realBiome = new AtomicCache<>(true);
|
||||||
private final transient Map<Long, CNG> childGenerators = new ConcurrentHashMap<>();
|
private final transient Map<Long, CNG> childGenerators = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ public class IrisDimensionCarvingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private CNG scaleByShrinkFactor(CNG generator) {
|
private CNG scaleByShrinkFactor(CNG generator) {
|
||||||
return generator.bake().scale(Math.max(0.0001D, getChildShrinkFactor())).bake();
|
return generator.bake().scale(Math.max(MINIMUM_CHILD_SHRINK_FACTOR, getChildShrinkFactor())).bake();
|
||||||
}
|
}
|
||||||
|
|
||||||
private long hashOfId() {
|
private long hashOfId() {
|
||||||
|
|||||||
Reference in new issue
Block a user