mark the world as active

This commit is contained in:
mcrcortex
2025-10-25 17:47:09 +10:00
parent 3de5740790
commit 6ffa90f064

View File

@@ -32,6 +32,8 @@ public class VoxelIngestService {
private void processJob() { private void processJob() {
var task = this.ingestQueue.pop(); var task = this.ingestQueue.pop();
task.world.markActive();
var section = task.section; var section = task.section;
var vs = SECTION_CACHE.get().setPosition(task.cx, task.cy, task.cz); var vs = SECTION_CACHE.get().setPosition(task.cx, task.cy, task.cz);
@@ -92,6 +94,9 @@ public class VoxelIngestService {
if (!engine.isLive()) { if (!engine.isLive()) {
throw new IllegalStateException("Tried inserting chunk into WorldEngine that was not alive"); throw new IllegalStateException("Tried inserting chunk into WorldEngine that was not alive");
} }
engine.markActive();
var lightingProvider = chunk.getWorld().getLightingProvider(); var lightingProvider = chunk.getWorld().getLightingProvider();
boolean gotLighting = false; boolean gotLighting = false;