diff --git a/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java b/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java index 45d53d3e..50f629a2 100644 --- a/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java +++ b/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java @@ -145,7 +145,7 @@ public class BCLibNetherBiomeSource extends BiomeSource { private void initMap() { boolean useLegacy = GeneratorOptions.useOldBiomeGenerator() || forceLegacyGenerator; TriFunction mapConstructor = useLegacy ? SquareBiomeMap::new : HexBiomeMap::new; - if (worldHeight > 128) { + if (worldHeight > 128 && GeneratorOptions.useVerticalBiomes()) { this.biomeMap = new MapStack(seed, GeneratorOptions.getBiomeSizeNether(), BiomeAPI.NETHER_BIOME_PICKER, 86, worldHeight, mapConstructor); } else { diff --git a/src/main/java/ru/bclib/world/generator/GeneratorOptions.java b/src/main/java/ru/bclib/world/generator/GeneratorOptions.java index bf79b60e..f241c021 100644 --- a/src/main/java/ru/bclib/world/generator/GeneratorOptions.java +++ b/src/main/java/ru/bclib/world/generator/GeneratorOptions.java @@ -16,6 +16,7 @@ public class GeneratorOptions { private static boolean addNetherBiomesByCategory = false; private static boolean addEndBiomesByCategory = false; private static boolean useOldBiomeGenerator = false; + private static boolean verticalBiomes = true; private static long farEndBiomesSqr = 1000000; public static void init() { @@ -27,6 +28,7 @@ public class GeneratorOptions { addNetherBiomesByCategory = Configs.GENERATOR_CONFIG.getBoolean("options", "addNetherBiomesByCategory", false); addEndBiomesByCategory = Configs.GENERATOR_CONFIG.getBoolean("options", "addEndBiomesByCategory", false); useOldBiomeGenerator = Configs.GENERATOR_CONFIG.getBoolean("options", "useOldBiomeGenerator", false); + verticalBiomes = Configs.GENERATOR_CONFIG.getBoolean("options", "verticalBiomesInTallNether", true); } public static int getBiomeSizeNether() { @@ -80,4 +82,8 @@ public class GeneratorOptions { public static boolean useOldBiomeGenerator() { return useOldBiomeGenerator; } + + public static boolean useVerticalBiomes() { + return verticalBiomes; + } }