mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
World: simplify condition
This commit is contained in:
parent
69f197dbec
commit
e9c5846a06
@ -2623,7 +2623,7 @@ class World implements ChunkManager{
|
|||||||
|
|
||||||
public function isChunkPopulated(int $x, int $z) : bool{
|
public function isChunkPopulated(int $x, int $z) : bool{
|
||||||
$chunk = $this->loadChunk($x, $z);
|
$chunk = $this->loadChunk($x, $z);
|
||||||
return $chunk !== null ? $chunk->isPopulated() : false;
|
return $chunk !== null && $chunk->isPopulated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user