World: fixed spawning in the void when the spawn terrain is higher than y=70 on default worlds

fixes #5390
This commit is contained in:
Dylan K. Taylor 2022-11-07 14:23:17 +00:00
parent 3a2a23b236
commit 2d0602d19f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2784,8 +2784,8 @@ class World implements ChunkManager{
if($this->getBlockAt($x, $y, $z)->isFullCube()){
if($wasAir){
$y++;
break;
}
break;
}else{
$wasAir = true;
}