mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
LightPopulationTask: do not copy existing light arrays
this task wipes out the light arrays and recalculates them from scratch, so it's pointless to copy any preexisting light arrays anyway.
This commit is contained in:
@ -51,7 +51,7 @@ class LightPopulationTask extends AsyncTask{
|
||||
* @phpstan-param \Closure(array<int, LightArray> $blockLight, array<int, LightArray> $skyLight, array<int, int> $heightMap) : void $onCompletion
|
||||
*/
|
||||
public function __construct(Chunk $chunk, \Closure $onCompletion){
|
||||
$this->chunk = FastChunkSerializer::serialize($chunk);
|
||||
$this->chunk = FastChunkSerializer::serializeWithoutLight($chunk);
|
||||
$this->storeLocal(self::TLS_KEY_COMPLETION_CALLBACK, $onCompletion);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user