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