mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
a207d14a0e
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
46 lines
3.4 KiB
Diff
46 lines
3.4 KiB
Diff
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
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherCappedSurfaceBuilder.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherCappedSurfaceBuilder.java
|
|
index 3f297ef7bde4159c77681574966446a0eba03f25..ff17c76f341028dd6d17f4c1f13f442c2e404532 100644
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherCappedSurfaceBuilder.java
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherCappedSurfaceBuilder.java
|
|
@@ -44,7 +44,7 @@ public abstract class NetherCappedSurfaceBuilder extends SurfaceBuilder<SurfaceB
|
|
BlockPos.MutableBlockPos blockposition_mutableblockposition = new BlockPos.MutableBlockPos();
|
|
BlockState iblockdata4 = chunk.getBlockState(blockposition_mutableblockposition.set(k1, 128, l1));
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
+ for (int k2 = height; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
blockposition_mutableblockposition.set(k1, k2, l1);
|
|
BlockState iblockdata5 = chunk.getBlockState(blockposition_mutableblockposition);
|
|
int l2;
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherForestSurfaceBuilder.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherForestSurfaceBuilder.java
|
|
index 4d6c03048022442dea467e1d9d018f150adc62c7..f64671b7359fb71e8af578d48d0a3c211e315057 100644
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherForestSurfaceBuilder.java
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherForestSurfaceBuilder.java
|
|
@@ -34,7 +34,7 @@ public class NetherForestSurfaceBuilder extends SurfaceBuilder<SurfaceBuilderBas
|
|
int j2 = -1;
|
|
BlockState iblockdata2 = surfaceBlocks.getUnderMaterial();
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
+ for (int k2 = height; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
blockposition_mutableblockposition.set(k1, k2, l1);
|
|
BlockState iblockdata3 = surfaceBlocks.getTopMaterial();
|
|
BlockState iblockdata4 = chunk.getBlockState(blockposition_mutableblockposition);
|
|
diff --git a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherSurfaceBuilder.java b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherSurfaceBuilder.java
|
|
index c1e0fd7813786bf1cc03b08b204007711575f144..b222890e7bdff2c1470841677a99d4423f9c9d7f 100644
|
|
--- a/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherSurfaceBuilder.java
|
|
+++ b/src/main/java/net/minecraft/world/level/levelgen/surfacebuilders/NetherSurfaceBuilder.java
|
|
@@ -36,7 +36,7 @@ public class NetherSurfaceBuilder extends SurfaceBuilder<SurfaceBuilderBaseConfi
|
|
BlockState iblockdata2 = surfaceBlocks.getTopMaterial();
|
|
BlockState iblockdata3 = surfaceBlocks.getUnderMaterial();
|
|
|
|
- for (int k2 = 127; k2 >= 0; --k2) {
|
|
+ for (int k2 = height; k2 >= 0; --k2) { // Paper - fix MC-187716 - use configured height
|
|
blockposition_mutableblockposition.set(k1, k2, l1);
|
|
BlockState iblockdata4 = chunk.getBlockState(blockposition_mutableblockposition);
|
|
|