mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Level: add a null coalesce
meant to add this before push but wasn't thinking clearly...
This commit is contained in:
parent
813437e3ee
commit
210e108574
@ -999,7 +999,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
foreach($this->chunkTickList as $index => $loaders){
|
||||
Level::getXZ($index, $chunkX, $chunkZ);
|
||||
|
||||
if(($chunk = $this->chunks[$index]) === null){
|
||||
if(($chunk = $this->chunks[$index] ?? null) === null){
|
||||
unset($this->chunkTickList[$index]);
|
||||
continue;
|
||||
}elseif($loaders <= 0){
|
||||
|
Loading…
x
Reference in New Issue
Block a user