From 1cce906e11b61a10236e103238183ba95d82de59 Mon Sep 17 00:00:00 2001 From: Ryan Michela Date: Thu, 6 Oct 2016 22:31:53 -0700 Subject: [PATCH] MC-54738: Fix ocean biome spikes due to minHeight sign inversion. --- nms-patches/ChunkProviderGenerate.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nms-patches/ChunkProviderGenerate.patch diff --git a/nms-patches/ChunkProviderGenerate.patch b/nms-patches/ChunkProviderGenerate.patch new file mode 100644 index 0000000000..cbb0143e23 --- /dev/null +++ b/nms-patches/ChunkProviderGenerate.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/server/ChunkProviderGenerate.java ++++ b/net/minecraft/server/ChunkProviderGenerate.java +@@ -228,6 +228,11 @@ + f5 = 1.0F + f5 * 2.0F; + f6 = 1.0F + f6 * 4.0F; + } ++ // CraftBukkit start - fix MC-54738 ++ if (f5 < -1.8F) { ++ f5 = -1.8F; ++ } ++ // CraftBukkit end + + float f7 = this.r[l1 + 2 + (i2 + 2) * 5] / (f5 + 2.0F); +