From e75ae5ad01b8919496e6158d5c8ec70fd0f04e7f Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:21:58 -0700 Subject: [PATCH] Fix broken nether/end void generation --- .../thedarkcolour/exdeorum/voidworld/VoidChunkGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/thedarkcolour/exdeorum/voidworld/VoidChunkGenerator.java b/src/main/java/thedarkcolour/exdeorum/voidworld/VoidChunkGenerator.java index 296bcaac..32ed0a68 100644 --- a/src/main/java/thedarkcolour/exdeorum/voidworld/VoidChunkGenerator.java +++ b/src/main/java/thedarkcolour/exdeorum/voidworld/VoidChunkGenerator.java @@ -66,12 +66,14 @@ public class VoidChunkGenerator extends NoiseBasedChunkGenerator { private final Holder settings; private final TagKey allowedStructureSets; private final boolean generateNormal; + private final boolean allowBiomeDecoration; public VoidChunkGenerator(BiomeSource biomeSource, Holder settings, TagKey allowedStructureSets) { super(biomeSource, settings); this.settings = settings; this.allowedStructureSets = allowedStructureSets; this.generateNormal = (settings.is(new ResourceLocation("minecraft:end")) && !EConfig.COMMON.voidEndGeneration.get()) || (settings.is(new ResourceLocation("minecraft:nether")) && !EConfig.COMMON.voidNetherGeneration.get()); + this.allowBiomeDecoration = !settings.is(new ResourceLocation("minecraft:overworld")); } @Override @@ -142,7 +144,7 @@ public class VoidChunkGenerator extends NoiseBasedChunkGenerator { @Override public void applyBiomeDecoration(WorldGenLevel pLevel, ChunkAccess pChunk, StructureManager pStructureManager) { - if (this.generateNormal) { + if (this.generateNormal || this.allowBiomeDecoration) { super.applyBiomeDecoration(pLevel, pChunk, pStructureManager); } }