mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +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();
|
$lightPopulatedState = $adjacentChunk->isLightPopulated();
|
||||||
if($lightPopulatedState !== true){
|
if($lightPopulatedState !== true){
|
||||||
$this->orderLightPopulation($chunkX + $cx, $chunkZ + $cz);
|
if($lightPopulatedState === false){
|
||||||
|
$this->orderLightPopulation($chunkX + $cx, $chunkZ + $cz);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user