mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
766668f0db
By: md_5 <git@md-5.net>
24 lines
1.5 KiB
Diff
24 lines
1.5 KiB
Diff
--- a/net/minecraft/world/level/levelgen/ChunkProviderFlat.java
|
|
+++ b/net/minecraft/world/level/levelgen/ChunkProviderFlat.java
|
|
@@ -32,11 +32,17 @@
|
|
private final GeneratorSettingsFlat settings;
|
|
|
|
public ChunkProviderFlat(IRegistry<StructureSet> iregistry, GeneratorSettingsFlat generatorsettingsflat) {
|
|
- Optional optional = generatorsettingsflat.structureOverrides();
|
|
- WorldChunkManagerHell worldchunkmanagerhell = new WorldChunkManagerHell(generatorsettingsflat.getBiome());
|
|
+ // CraftBukkit start
|
|
+ // Optional optional = generatorsettingsflat.structureOverrides();
|
|
+ // WorldChunkManagerHell worldchunkmanagerhell = new WorldChunkManagerHell(generatorsettingsflat.getBiome());
|
|
|
|
- Objects.requireNonNull(generatorsettingsflat);
|
|
- super(iregistry, optional, worldchunkmanagerhell, SystemUtils.memoize(generatorsettingsflat::adjustGenerationSettings));
|
|
+ // Objects.requireNonNull(generatorsettingsflat);
|
|
+ this(iregistry, generatorsettingsflat, new WorldChunkManagerHell(generatorsettingsflat.getBiome()));
|
|
+ }
|
|
+
|
|
+ public ChunkProviderFlat(IRegistry<StructureSet> iregistry, GeneratorSettingsFlat generatorsettingsflat, net.minecraft.world.level.biome.WorldChunkManager worldchunkmanager) {
|
|
+ super(iregistry, generatorsettingsflat.structureOverrides(), worldchunkmanager, SystemUtils.memoize(generatorsettingsflat::adjustGenerationSettings));
|
|
+ // CraftBukkit end
|
|
this.settings = generatorsettingsflat;
|
|
}
|
|
|