World: fixed potential bug scheduling async light updates multiple times

This commit is contained in:
Dylan K. Taylor 2021-05-21 13:09:38 +01:00
parent f6f0938b3b
commit 2ab751f985
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -1020,7 +1020,9 @@ class World implements ChunkManager{
}
$lightPopulatedState = $adjacentChunk->isLightPopulated();
if($lightPopulatedState !== true){
$this->orderLightPopulation($chunkX + $cx, $chunkZ + $cz);
if($lightPopulatedState === false){
$this->orderLightPopulation($chunkX + $cx, $chunkZ + $cz);
}
return false;
}
}