aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch
new file mode 100644
index 0000000000..c8d944bd9f
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/levelgen/FlatLevelSource.java.patch
@@ -0,0 +1,24 @@
+--- a/net/minecraft/world/level/levelgen/FlatLevelSource.java
++++ b/net/minecraft/world/level/levelgen/FlatLevelSource.java
+@@ -35,10 +35,19 @@
+ private final FlatLevelGeneratorSettings settings;
+
+ public FlatLevelSource(FlatLevelGeneratorSettings settings) {
+- super(new FixedBiomeSource(settings.getBiome()), Util.memoize(settings::adjustGenerationSettings));
+- this.settings = settings;
++ // CraftBukkit start
++ // WorldChunkManagerHell worldchunkmanagerhell = new WorldChunkManagerHell(generatorsettingsflat.getBiome());
++
++ // Objects.requireNonNull(generatorsettingsflat);
++ this(settings, new FixedBiomeSource(settings.getBiome()));
+ }
+
++ public FlatLevelSource(FlatLevelGeneratorSettings generatorsettingsflat, net.minecraft.world.level.biome.BiomeSource worldchunkmanager) {
++ super(worldchunkmanager, Util.memoize(generatorsettingsflat::adjustGenerationSettings));
++ // CraftBukkit end
++ this.settings = generatorsettingsflat;
++ }
++
+ @Override
+ public ChunkGeneratorStructureState createState(HolderLookup<StructureSet> structureSetLookup, RandomState randomState, long seed) {
+ Stream<Holder<StructureSet>> stream = this.settings