mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Merge pull request #801 from MihailRis/fix-non-lighted-chunks-saving
fix non-lighted chunks saving
This commit is contained in:
commit
63bf131631
2 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ void BlocksController::randomTick(int tickid, int parts, uint padding) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto& chunk = chunks.getChunks()[index];
|
auto& chunk = chunks.getChunks()[index];
|
||||||
if (chunk == nullptr || !chunk->flags.lighted) {
|
if (chunk == nullptr || !chunk->flags.ready) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (chunk->lastRandomTickId == randomTickId) {
|
if (chunk->lastRandomTickId == randomTickId) {
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ void WorldRegions::put(Chunk* chunk, std::vector<ubyte> entitiesData) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(chunk != nullptr);
|
assert(chunk != nullptr);
|
||||||
if (!chunk->flags.lighted) {
|
if (!chunk->flags.ready) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool lightsUnsaved = !chunk->flags.loadedLights && doWriteLights;
|
bool lightsUnsaved = !chunk->flags.loadedLights && doWriteLights;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue