Level: add a null coalesce

meant to add this before push but wasn't thinking clearly...
This commit is contained in:
Dylan K. Taylor 2018-05-18 11:28:52 +01:00
parent 813437e3ee
commit 210e108574

View File

@ -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){