mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: 1daafe455 Updated Upstream (Bukkit/CraftBukkit) 98828b006 Merge pull request #4132 from Proximyst/progress/1.16.2 b23f27f8d Fix incorrect return for WorldServer#addAllEntitiesSafely (#3) 5085fa30c Fix MC-187716 Use configured height c44add5a0 Initialise a new chunk section if none was found yet updated 74a4d5f8b Remove armour stand double add to world 6d25cc4ec Don't mark null chunk sections for block updates
This commit is contained in:
@@ -4,45 +4,16 @@ Date: Sat, 15 Aug 2020 06:51:46 -0500
|
||||
Subject: [PATCH] Use configured height for nether surface builders
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/WorldGenSurfaceNether.java b/src/main/java/net/minecraft/server/WorldGenSurfaceNether.java
|
||||
index 6677740edb..3296904445 100644
|
||||
--- a/src/main/java/net/minecraft/server/WorldGenSurfaceNether.java
|
||||
+++ b/src/main/java/net/minecraft/server/WorldGenSurfaceNether.java
|
||||
@@ -29,7 +29,7 @@ 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) { // Purpur - use configured height
|
||||
blockposition_mutableblockposition.d(k1, k2, l1);
|
||||
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java
|
||||
index 1ff8b4eb10..2fbc8a2e0d 100644
|
||||
index 462f0b2bae..f418a71ca8 100644
|
||||
--- a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java
|
||||
+++ b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java
|
||||
@@ -35,9 +35,9 @@ public abstract class WorldGenSurfaceNetherAbstract extends WorldGenSurface<Worl
|
||||
@@ -35,7 +35,7 @@ public abstract class WorldGenSurfaceNetherAbstract extends WorldGenSurface<Worl
|
||||
return ((NoiseGeneratorOctaves) entry.getValue()).a((double) i, (double) l, (double) j);
|
||||
})).get()).getKey();
|
||||
BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition();
|
||||
- IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition.d(k1, 128, l1));
|
||||
+ IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition.d(k1, k, l1)); // Purpur - use configured height
|
||||
|
||||
- for (int k2 = 127; k2 >= 0; --k2) {
|
||||
+ for (int k2 = k; k2 >= 0; --k2) { // Purpur - use configured height
|
||||
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;
|
||||
diff --git a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java
|
||||
index c3c31fa356..7c17d9c61c 100644
|
||||
--- a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java
|
||||
+++ b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java
|
||||
@@ -27,7 +27,7 @@ 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) { // Purpur - use configured height
|
||||
blockposition_mutableblockposition.d(k1, k2, l1);
|
||||
IBlockData iblockdata3 = worldgensurfaceconfigurationbase.a();
|
||||
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition);
|
||||
|
||||
Reference in New Issue
Block a user