mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-23 08:30:34 +00:00
chore:
- Extracted child style seed derivation to deriveChildStyleSeed Ref.: https://github.com/VolmitSoftware/Iris/issues/1251
This commit is contained in:
1 parent
8f8a3b2355
commit
cf7ebcece1
1 file changed
+5
-1
@@ -511,7 +511,11 @@ public class IrisBiome extends IrisRegistrant implements Rarity {
|
||||
}
|
||||
|
||||
public CNG getChildrenGenerator(RNG random, int sig, double scale) {
|
||||
return childrenCell.aquire(() -> getChildStyle().create(random.nextParallelRNG(sig * 2137), getLoader()).bake().scale(scale).bake());
|
||||
return childrenCell.aquire(() -> getChildStyle().create(deriveChildStyleSeed(random, sig), getLoader()).bake().scale(scale).bake());
|
||||
}
|
||||
|
||||
static RNG deriveChildStyleSeed(RNG random, int signature) {
|
||||
return random.nextParallelRNG(signature * 2137);
|
||||
}
|
||||
|
||||
public KList<NativeBlockState> generateLayers(IrisDimension dim, double wx, double wz, RNG random, int maxDepth, int height, IrisData rdata, IrisComplex complex) {
|
||||
|
||||
Reference in new issue
Block a user