2021-09-03 18:05:01 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Noah van der Aa <ndvdaa@gmail.com>
|
|
|
|
Date: Mon, 30 Aug 2021 15:22:18 +0200
|
|
|
|
Subject: [PATCH] Prevent softlocked end exit portal generation
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
2022-06-08 11:44:30 +00:00
|
|
|
index ad5b20fb16b19bb2099c2fd840e8f5c20f345577..d0c864277886d67362d5389e71095020f69abfc3 100644
|
2021-09-03 18:05:01 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
2022-06-08 11:44:30 +00:00
|
|
|
@@ -413,6 +413,11 @@ public class EndDragonFight {
|
2021-09-03 18:05:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Prevent "softlocked" exit portal generation
|
|
|
|
+ if (this.portalLocation.getY() <= this.level.getMinBuildHeight()) {
|
2021-09-03 18:14:29 +00:00
|
|
|
+ this.portalLocation = this.portalLocation.atY(this.level.getMinBuildHeight() + 1);
|
2021-09-03 18:05:01 +00:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
2022-06-08 11:44:30 +00:00
|
|
|
endPodiumFeature.place(FeatureConfiguration.NONE, this.level, this.level.getChunkSource().getGenerator(), RandomSource.create(), this.portalLocation);
|
2021-09-03 18:05:01 +00:00
|
|
|
}
|
|
|
|
|