World: simplify condition

This commit is contained in:
Dylan K. Taylor 2023-11-16 10:06:43 +00:00
parent 69f197dbec
commit e9c5846a06
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2623,7 +2623,7 @@ class World implements ChunkManager{
public function isChunkPopulated(int $x, int $z) : bool{
$chunk = $this->loadChunk($x, $z);
return $chunk !== null ? $chunk->isPopulated() : false;
return $chunk !== null && $chunk->isPopulated();
}
/**