From 5b8c2d6162092f3655e2d857fa75ee42d879e604 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 25 Feb 2026 18:38:38 +0300 Subject: [PATCH] fix non-lighted chunks saving --- src/logic/BlocksController.cpp | 2 +- src/world/files/WorldRegions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/BlocksController.cpp b/src/logic/BlocksController.cpp index 8ab863927..1e3ad2441 100644 --- a/src/logic/BlocksController.cpp +++ b/src/logic/BlocksController.cpp @@ -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) { diff --git a/src/world/files/WorldRegions.cpp b/src/world/files/WorldRegions.cpp index 14139ed37..d96ed46fb 100644 --- a/src/world/files/WorldRegions.cpp +++ b/src/world/files/WorldRegions.cpp @@ -157,7 +157,7 @@ void WorldRegions::put(Chunk* chunk, std::vector entitiesData) { return; } assert(chunk != nullptr); - if (!chunk->flags.lighted) { + if (!chunk->flags.ready) { return; } bool lightsUnsaved = !chunk->flags.loadedLights && doWriteLights;