net/minecraft/world/level/chunk/

This commit is contained in:
Owen1212055 2024-12-14 15:26:08 -05:00
parent 9aa5f1a955
commit 0aa15ea868
No known key found for this signature in database
GPG key ID: 2133292072886A30

View file

@ -79,7 +79,7 @@
Supplier<String> supplier1 = () -> registry1.getResourceKey(placedFeature).map(Object::toString).orElseGet(placedFeature::toString);
- worldgenRandom.setFeatureSeed(l, i3, i);
+ // Paper start - Configurable feature seeds; change populationSeed used in random
+ long featurePopulationSeed = i;
+ long featurePopulationSeed = l;
+ final long configFeatureSeed = level.getMinecraftWorld().paperConfig().featureSeeds.features.getLong(placedFeature.feature());
+ if (configFeatureSeed != -1) {
+ featurePopulationSeed = worldgenRandom.setDecorationSeed(configFeatureSeed, blockPos.getX(), blockPos.getZ()); // See seededrandom.setDecorationSeed from above