From 1d26ff2269cd5014f1ea40026439842b788dbbf5 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 3 Sep 2021 20:14:29 +0200 Subject: [PATCH] Use BlockPost#atY in end portal softlock fix --- .../server/Prevent-softlocked-end-exit-portal-generation.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Prevent-softlocked-end-exit-portal-generation.patch b/patches/server/Prevent-softlocked-end-exit-portal-generation.patch index ef43bf60d7..2cd9ed4a0b 100644 --- a/patches/server/Prevent-softlocked-end-exit-portal-generation.patch +++ b/patches/server/Prevent-softlocked-end-exit-portal-generation.patch @@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start - Prevent "softlocked" exit portal generation + if (this.portalLocation.getY() <= this.level.getMinBuildHeight()) { -+ this.portalLocation.setY(this.level.getMinBuildHeight() + 1); ++ this.portalLocation = this.portalLocation.atY(this.level.getMinBuildHeight() + 1); + } + // Paper end +