From 0aa15ea868d2f34331e7cad6311f846c6f10d8c9 Mon Sep 17 00:00:00 2001 From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:26:08 -0500 Subject: [PATCH] net/minecraft/world/level/chunk/ --- .../net/minecraft/world/level/chunk/ChunkGenerator.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/level/chunk/ChunkGenerator.java.patch b/paper-server/patches/sources/net/minecraft/world/level/chunk/ChunkGenerator.java.patch index bd04398695..bdd2e9ec24 100644 --- a/paper-server/patches/sources/net/minecraft/world/level/chunk/ChunkGenerator.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/level/chunk/ChunkGenerator.java.patch @@ -79,7 +79,7 @@ Supplier 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