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 68e862b6fa
commit 1a5cc8212c

View File

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