mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
World: fixed potential bug scheduling async light updates multiple times
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user