2016-10-07 07:31:53 +02:00
|
|
|
--- a/net/minecraft/server/ChunkProviderGenerate.java
|
|
|
|
+++ b/net/minecraft/server/ChunkProviderGenerate.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
public class ChunkProviderGenerate extends ChunkGeneratorAbstract<GeneratorSettingsOverworld> {
|
|
|
|
|
|
|
|
- private static final float[] h = (float[]) SystemUtils.a((Object) (new float[25]), (afloat) -> {
|
|
|
|
+ private static final float[] h = (float[]) SystemUtils.a((new float[25]), (afloat) -> { // CraftBukkit - decompile error
|
|
|
|
for (int i = -2; i <= 2; ++i) {
|
|
|
|
for (int j = -2; j <= 2; ++j) {
|
|
|
|
float f = 10.0F / MathHelper.c((float) (i * i + j * j) + 0.2F);
|
2019-12-10 23:00:00 +01:00
|
|
|
@@ -83,6 +83,11 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
f4 = 1.0F + f4 * 2.0F;
|
|
|
|
f5 = 1.0F + f5 * 4.0F;
|
|
|
|
}
|
|
|
|
+ // CraftBukkit start - fix MC-54738
|
|
|
|
+ if (f4 < -1.8F) {
|
|
|
|
+ f4 = -1.8F;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
2019-12-10 23:00:00 +01:00
|
|
|
float f6 = ChunkProviderGenerate.h[l + 2 + (i1 + 2) * 5] / (f4 + 2.0F);
|
2016-10-07 07:31:53 +02:00
|
|
|
|