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-09 08:51:45 +00:00
|
|
|
index 99b175625c79fe5c4d944810e3fe11be5eed997f..f8d846345c1cc3c78f9ac14635b26f2affc77190 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
|
|
|
}
|
|
|
|
|