mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Merge branch 'stable' into minor-next
This commit is contained in:
@ -3003,7 +3003,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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user