From 1a2c10e844aa330e5ca99800669313f3deaa4657 Mon Sep 17 00:00:00 2001 From: jasonw_4331 Date: Wed, 2 Aug 2023 13:05:16 -0400 Subject: [PATCH] World: Fixed getSafeSpawn() not accepting seed positions below y=1 (#5955) this should have been changed during the introduction of y=-64 minimum world height, but it got missed. --- src/world/World.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/World.php b/src/world/World.php index f556d2e1f..b09304742 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -2951,7 +2951,7 @@ class World implements ChunkManager{ * @throws WorldException if the terrain is not generated */ public function getSafeSpawn(?Vector3 $spawn = null) : Position{ - if(!($spawn instanceof Vector3) || $spawn->y < 1){ + if(!($spawn instanceof Vector3) || $spawn->y <= $this->minY){ $spawn = $this->getSpawnLocation(); }