2021-09-03 20:05:01 +02: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-03-01 06:43:03 +01:00
|
|
|
index 7dbe0bc8082c8e7741f40bbd69bc7d7407945754..ed6ff35a2112cea4faa6e1458d1effc40fce5dd2 100644
|
2021-09-03 20:05:01 +02: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-03-01 06:43:03 +01:00
|
|
|
@@ -412,6 +412,11 @@ public class EndDragonFight {
|
2021-09-03 20:05:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Prevent "softlocked" exit portal generation
|
|
|
|
+ if (this.portalLocation.getY() <= this.level.getMinBuildHeight()) {
|
2021-09-03 20:14:29 +02:00
|
|
|
+ this.portalLocation = this.portalLocation.atY(this.level.getMinBuildHeight() + 1);
|
2021-09-03 20:05:01 +02:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
2022-03-01 06:43:03 +01:00
|
|
|
endPodiumFeature.place(FeatureConfiguration.NONE, this.level, this.level.getChunkSource().getGenerator(), new Random(), this.portalLocation);
|
2021-09-03 20:05:01 +02:00
|
|
|
}
|
|
|
|
|