mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
Chunks reload lights artifacts
This commit is contained in:
parent
636cb0c44c
commit
eea920d98f
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ void WorldFiles::put(Chunk* chunk){
|
||||||
ubyte* data = compress(chunk_data.get(), CHUNK_DATA_LEN, compressedSize);
|
ubyte* data = compress(chunk_data.get(), CHUNK_DATA_LEN, compressedSize);
|
||||||
region->put(localX, localZ, data, compressedSize);
|
region->put(localX, localZ, data, compressedSize);
|
||||||
}
|
}
|
||||||
if (doWriteLights) {
|
if (doWriteLights && chunk->isLighted()) {
|
||||||
WorldRegion* region = getOrCreateRegion(lights, regionX, regionZ);
|
WorldRegion* region = getOrCreateRegion(lights, regionX, regionZ);
|
||||||
region->setUnsaved(true);
|
region->setUnsaved(true);
|
||||||
unique_ptr<ubyte[]> light_data (chunk->lightmap->encode());
|
unique_ptr<ubyte[]> light_data (chunk->lightmap->encode());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue