From 603df988976305f139b35e2505233f29ecdfe829 Mon Sep 17 00:00:00 2001 From: 19MisterX98 <41451155+19MisterX98@users.noreply.github.com> Date: Sun, 16 Oct 2022 00:34:10 +0200 Subject: [PATCH] FIx bedrock patterns (#8474) --- patches/server/0330-Flat-bedrock-generator-settings.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0330-Flat-bedrock-generator-settings.patch b/patches/server/0330-Flat-bedrock-generator-settings.patch index a234199fa8..6a5726da0c 100644 --- a/patches/server/0330-Flat-bedrock-generator-settings.patch +++ b/patches/server/0330-Flat-bedrock-generator-settings.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Flat bedrock generator settings Co-authored-by: Noah van der Aa diff --git a/src/main/java/net/minecraft/data/worldgen/SurfaceRuleData.java b/src/main/java/net/minecraft/data/worldgen/SurfaceRuleData.java -index 06e1774dfbb667aca69bc30c9675ed472cb5728c..2f9ba60c0196c3722fbf5a44fbbcf22a85d438db 100644 +index 06e1774dfbb667aca69bc30c9675ed472cb5728c..1d5bc86516df3781aea894c3afd340421ba51a17 100644 --- a/src/main/java/net/minecraft/data/worldgen/SurfaceRuleData.java +++ b/src/main/java/net/minecraft/data/worldgen/SurfaceRuleData.java @@ -53,6 +53,66 @@ public class SurfaceRuleData { @@ -62,7 +62,7 @@ index 06e1774dfbb667aca69bc30c9675ed472cb5728c..2f9ba60c0196c3722fbf5a44fbbcf22a + return false; + } else { + double d = net.minecraft.util.Mth.map((double) y, (double) i, (double) j, 1.0D, 0.0D); -+ net.minecraft.util.RandomSource randomSource = positionalRandomFactory.at(this.context.blockX, i, this.context.blockZ); ++ net.minecraft.util.RandomSource randomSource = positionalRandomFactory.at(this.context.blockX, y, this.context.blockZ); + return (double) randomSource.nextFloat() < d; + } + }