From 47142eb4f2cc4ce397fdb95ba8964edcb212a181 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 14 Jan 2024 11:52:47 +1100 Subject: [PATCH] Reduce the blockiness of end biomes --- .../terrablender/mixin/MixinTheEndBiomeSource.java | 10 ++++------ NeoForge/src/main/resources/META-INF/mods.toml | 4 ++-- gradle.properties | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Common/src/main/java/terrablender/mixin/MixinTheEndBiomeSource.java b/Common/src/main/java/terrablender/mixin/MixinTheEndBiomeSource.java index 2790fa1..fcb59ec 100644 --- a/Common/src/main/java/terrablender/mixin/MixinTheEndBiomeSource.java +++ b/Common/src/main/java/terrablender/mixin/MixinTheEndBiomeSource.java @@ -117,21 +117,19 @@ public void onGetNoiseBiome(int x, int y, int z, Climate.Sampler sampler, Callba } else { - int densityX = (SectionPos.blockToSectionCoord(blockX) * 2 + 1) * 8; - int densityZ = (SectionPos.blockToSectionCoord(blockZ) * 2 + 1) * 8; - double heightNoise = sampler.erosion().compute(new DensityFunction.SinglePointContext(densityX, blockY, densityZ)); + double heightNoise = sampler.erosion().compute(new DensityFunction.SinglePointContext(blockX, blockY, blockZ)); if (heightNoise > 0.25) { - cir.setReturnValue(this.getBiomeHolder(this.highlandsArea.get(densityX, densityZ))); + cir.setReturnValue(this.getBiomeHolder(this.highlandsArea.get(x, z))); } else if (heightNoise >= -0.0625) { - cir.setReturnValue(this.getBiomeHolder(this.midlandsArea.get(densityX, densityZ))); + cir.setReturnValue(this.getBiomeHolder(this.midlandsArea.get(x, z))); } else { - cir.setReturnValue(heightNoise < -0.21875 ? this.getBiomeHolder(this.islandsArea.get(densityX, densityZ)) : this.getBiomeHolder(this.edgeArea.get(densityX, densityZ))); + cir.setReturnValue(heightNoise < -0.21875 ? this.getBiomeHolder(this.islandsArea.get(x, z)) : this.getBiomeHolder(this.edgeArea.get(x, z))); } } } diff --git a/NeoForge/src/main/resources/META-INF/mods.toml b/NeoForge/src/main/resources/META-INF/mods.toml index 85aa8ad..5c80578 100644 --- a/NeoForge/src/main/resources/META-INF/mods.toml +++ b/NeoForge/src/main/resources/META-INF/mods.toml @@ -15,7 +15,7 @@ logoFile="tb_logo.png" [[dependencies.terrablender]] modId="neoforge" - mandatory=true - versionRange="[20.2,)" + required=true + versionRange="[20.4,)" ordering="NONE" side="BOTH" \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index da2b8ea..03ba942 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ common_server_run_name=Common Server forge_version=49.0.3 # NeoForge -neoforge_version=20.4.3-beta +neoforge_version=20.4.75-beta # Fabric fabric_version=0.91.1+1.20.4