geforkt von Mirrors/Paper
c97ce029e9
PaperMC believes that 1.16.2 is now ready for general release as we fixed the main issue plagueing the 1.16.x release, the MapLike data conversion issues. Until now, it was not safe for a server to convert a world to 1.16.2 without data conversion issues around villages and potentially other things. If you did, those MapLike errors meant something went wrong. This is now resolved. Big thanks to all those that helped, notably @BillyGalbreath and @Proximyst who did large parts of the update process with me. Please as always, backup your worlds and test before updating to 1.16.2! If you update to 1.16.2, there is no going back to an older build than this. --------------------------------- Co-authored-by: William Blake Galbreath <Blake.Galbreath@GMail.com> Co-authored-by: Mariell Hoversholm <proximyst@proximyst.com> Co-authored-by: krolik-exe <69214078+krolik-exe@users.noreply.github.com> Co-authored-by: BillyGalbreath <BillyGalbreath@users.noreply.github.com> Co-authored-by: stonar96 <minecraft.stonar96@gmail.com> Co-authored-by: Shane Freeder <theboyetronic@gmail.com> Co-authored-by: Jason <jasonpenilla2@me.com> Co-authored-by: kashike <kashike@vq.lc> Co-authored-by: Aurora <21148213+aurorasmiles@users.noreply.github.com> Co-authored-by: KennyTV <kennytv@t-online.de> Co-authored-by: commandblockguy <commandblockguy1@gmail.com> Co-authored-by: DigitalRegent <misterwener@gmail.com> Co-authored-by: ishland <ishlandmc@yeah.net>
46 Zeilen
3.1 KiB
Diff
46 Zeilen
3.1 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/server/WorldGenSurfaceNether.java b/src/main/java/net/minecraft/server/WorldGenSurfaceNether.java
|
|
index 6677740edb41901d6f8f92b6339e04b4e22cb6b6..dd3511d520cc385e4e89773e12d0e35aae8ecf3d 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) { // Paper - fix MC-187716 - 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 1ff8b4eb10bffb0c33c2ad8d1d490d3da99e72f2..462f0b2baea4207d7d82f2d4e043a5a7999a1f42 100644
|
|
--- a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherAbstract.java
|
|
@@ -37,7 +37,7 @@ 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;
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java b/src/main/java/net/minecraft/server/WorldGenSurfaceNetherForest.java
|
|
index c3c31fa356b2cd63db312ec15c5e45320cf6cfbb..4618425bf8c0d90a5399986691b451d2a9311d5a 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) { // Paper - fix MC-187716 - use configured height
|
|
blockposition_mutableblockposition.d(k1, k2, l1);
|
|
IBlockData iblockdata3 = worldgensurfaceconfigurationbase.a();
|
|
IBlockData iblockdata4 = ichunkaccess.getType(blockposition_mutableblockposition);
|