Merge pull request #801 from MihailRis/fix-non-lighted-chunks-saving

fix non-lighted chunks saving
This commit is contained in:
MihailRis 2026-02-25 19:01:12 +03:00 • committed by GitHub
commit 63bf131631
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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;