mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-30 19:52:06 -07:00
Expose vanilla BiomeProvider from WorldInfo
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
+ this.serverLevelData.setWorld(this);
|
||||
+
|
||||
+ if (biomeProvider != null) {
|
||||
+ BiomeSource worldChunkManager = new CustomWorldChunkManager(this.getWorld(), biomeProvider, this.server.registryAccess().lookupOrThrow(Registries.BIOME));
|
||||
+ BiomeSource worldChunkManager = new CustomWorldChunkManager(this.getWorld(), biomeProvider, this.server.registryAccess().lookupOrThrow(Registries.BIOME), chunkgenerator.getBiomeSource()); // Paper - add vanillaBiomeProvider
|
||||
+ if (chunkgenerator instanceof NoiseBasedChunkGenerator cga) {
|
||||
+ chunkgenerator = new NoiseBasedChunkGenerator(worldChunkManager, cga.settings);
|
||||
+ } else if (chunkgenerator instanceof FlatLevelSource cpf) {
|
||||
|
Reference in New Issue
Block a user