mark the world as active
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user