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
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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