diff --git a/divinemc-server/minecraft-patches/sources/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java.patch b/divinemc-server/minecraft-patches/sources/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java.patch new file mode 100644 index 0000000..28e1f7d --- /dev/null +++ b/divinemc-server/minecraft-patches/sources/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java ++++ b/net/minecraft/world/level/levelgen/BelowZeroRetrogen.java +@@ -82,6 +_,7 @@ + } + + public void applyBedrockMask(ProtoChunk chunk) { ++ if (org.bxteam.divinemc.DivineConfig.smoothBedrockLayer) return; // DivineMC - Smooth bedrock layer + LevelHeightAccessor heightAccessorForGeneration = chunk.getHeightAccessorForGeneration(); + int minY = heightAccessorForGeneration.getMinY(); + int maxY = heightAccessorForGeneration.getMaxY(); diff --git a/divinemc-server/src/main/java/org/bxteam/divinemc/DivineConfig.java b/divinemc-server/src/main/java/org/bxteam/divinemc/DivineConfig.java index fffcb3d..d965500 100644 --- a/divinemc-server/src/main/java/org/bxteam/divinemc/DivineConfig.java +++ b/divinemc-server/src/main/java/org/bxteam/divinemc/DivineConfig.java @@ -183,6 +183,7 @@ public class DivineConfig { public static ChunkSystemAlgorithms chunkWorkerAlgorithm = ChunkSystemAlgorithms.C2ME; public static int threadPoolPriority = Thread.NORM_PRIORITY + 1; public static boolean enableSecureSeed = false; + public static boolean smoothBedrockLayer = false; public static boolean enableDensityFunctionCompiler = false; public static boolean enableStructureLayoutOptimizer = true; public static boolean deduplicateShuffledTemplatePoolElementList = false; @@ -216,6 +217,9 @@ public class DivineConfig { "Terrain and biome generation remains the same, but all the ores and structures are generated with 1024-bit seed, instead of the usual 64-bit seed.", "This seed is almost impossible to crack, and there are no weird links between structures."); + smoothBedrockLayer = getBoolean("settings.chunk-generation.smooth-bedrock-layer", smoothBedrockLayer, + "Smoothens the bedrock layer at the bottom of overworld, and on the top of nether during the world generation."); + enableDensityFunctionCompiler = getBoolean("settings.chunk-generation.experimental.enable-density-function-compiler", enableDensityFunctionCompiler, "Whether to use density function compiler to accelerate world generation", "",