mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
World: fixed potential bug scheduling async light updates multiple times
This commit is contained in:
parent
f6f0938b3b
commit
2ab751f985
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user