2020-08-25 04:22:08 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Sat, 15 Aug 2020 08:04:49 -0500
|
|
|
|
Subject: [PATCH] Fix MC-187716 Use configured height
|
|
|
|
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNether.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNether.java
|
2020-08-25 04:22:08 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNether.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNether.java
|
2020-08-25 04:22:08 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class WorldGenSurfaceNether extends WorldGenSurface<WorldGenSurfaceConfig
|
|
|
|
IBlockData iblockdata2 = worldgensurfaceconfigurationbase.a();
|
|
|
|
IBlockData iblockdata3 = worldgensurfaceconfigurationbase.b();
|
|
|
|
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
|
|
+ for (int k2 = k; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
|
|
blockposition_mutableblockposition.d(k1, k2, l1);
|
|
|
|
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition);
|
|
|
|
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherAbstract.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherAbstract.java
|
2020-08-25 04:22:08 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherAbstract.java
|
2020-08-25 04:22:08 +02:00
|
|
|
@@ -0,0 +0,0 @@ public abstract class WorldGenSurfaceNetherAbstract extends WorldGenSurface<Worl
|
|
|
|
BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition();
|
|
|
|
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition.d(k1, 128, l1));
|
|
|
|
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
|
|
+ for (int k2 = k; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
|
|
blockposition_mutableblockposition.d(k1, k2, l1);
|
|
|
|
IBlockData iblockdata5 = ichunkaccess.getType(blockposition_mutableblockposition);
|
|
|
|
int l2;
|
2021-03-16 08:19:45 +01:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherForest.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherForest.java
|
2020-08-25 04:22:08 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2021-03-16 08:19:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherForest.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/WorldGenSurfaceNetherForest.java
|
2020-08-25 04:22:08 +02:00
|
|
|
@@ -0,0 +0,0 @@ public class WorldGenSurfaceNetherForest extends WorldGenSurface<WorldGenSurface
|
|
|
|
int j2 = -1;
|
|
|
|
IBlockData iblockdata2 = worldgensurfaceconfigurationbase.b();
|
|
|
|
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
|
|
+ for (int k2 = k; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
|
|
blockposition_mutableblockposition.d(k1, k2, l1);
|
|
|
|
IBlockData iblockdata3 = worldgensurfaceconfigurationbase.a();
|
|
|
|
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition);
|