Use BlockPost#atY in end portal softlock fix

This commit is contained in:
Nassim Jahnke 2021-09-03 20:14:29 +02:00
parent 3436b6780a
commit 1d26ff2269

View file

@ -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
+