mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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){
|
foreach($this->chunkTickList as $index => $loaders){
|
||||||
Level::getXZ($index, $chunkX, $chunkZ);
|
Level::getXZ($index, $chunkX, $chunkZ);
|
||||||
|
|
||||||
if(($chunk = $this->chunks[$index]) === null){
|
if(($chunk = $this->chunks[$index] ?? null) === null){
|
||||||
unset($this->chunkTickList[$index]);
|
unset($this->chunkTickList[$index]);
|
||||||
continue;
|
continue;
|
||||||
}elseif($loaders <= 0){
|
}elseif($loaders <= 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user