From fd0488dd6ae125e36419210947bef6cc38a3b11d Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Sat, 20 Nov 2021 20:32:30 +0300 Subject: [PATCH] Biome by category adding --- .../java/ru/bclib/world/generator/BCLibEndBiomeSource.java | 4 ++++ .../java/ru/bclib/world/generator/BCLibNetherBiomeSource.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/ru/bclib/world/generator/BCLibEndBiomeSource.java b/src/main/java/ru/bclib/world/generator/BCLibEndBiomeSource.java index 13d61a76..9cc4dc62 100644 --- a/src/main/java/ru/bclib/world/generator/BCLibEndBiomeSource.java +++ b/src/main/java/ru/bclib/world/generator/BCLibEndBiomeSource.java @@ -97,6 +97,10 @@ private static List getBiomes(Registry biomeRegistry) { return true; } + if (GeneratorOptions.addEndBiomesByCategory() && biome.getBiomeCategory() == BiomeCategory.THEEND) { + return true; + } + BCLBiome bclBiome = BiomeAPI.getBiome(key); if (bclBiome != BiomeAPI.EMPTY_BIOME) { if (bclBiome.hasParentBiome()) { diff --git a/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java b/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java index 82a981a0..6f26a475 100644 --- a/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java +++ b/src/main/java/ru/bclib/world/generator/BCLibNetherBiomeSource.java @@ -75,6 +75,10 @@ private static List getBiomes(Registry biomeRegistry) { return true; } + if (GeneratorOptions.addNetherBiomesByCategory() && biome.getBiomeCategory() == BiomeCategory.NETHER) { + return true; + } + BCLBiome bclBiome = BiomeAPI.getBiome(key); if (bclBiome != BiomeAPI.EMPTY_BIOME) { if (bclBiome.hasParentBiome()) {