ChunkRequestTask: do not copy light information when sending chunks

This commit is contained in:
Dylan K. Taylor 2020-02-09 17:49:15 +00:00
parent d360439c92
commit 7ad44d8403

View File

@ -54,7 +54,7 @@ class ChunkRequestTask extends AsyncTask{
public function __construct(int $chunkX, int $chunkZ, Chunk $chunk, CompressBatchPromise $promise, ?\Closure $onError = null){
$this->compressionLevel = Zlib::$LEVEL;
$this->chunk = FastChunkSerializer::serialize($chunk);
$this->chunk = FastChunkSerializer::serializeWithoutLight($chunk);
$this->chunkX = $chunkX;
$this->chunkZ = $chunkZ;
$this->tiles = ChunkSerializer::serializeTiles($chunk);