summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChunkProviderGenerate.patch
blob: 65c2bcd92be5a3691996410a3e0591ff1142808d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/minecraft/server/ChunkProviderGenerate.java
+++ b/net/minecraft/server/ChunkProviderGenerate.java
@@ -234,6 +234,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);