fix build

This commit is contained in:
mcrcortex
2025-12-23 10:43:13 +10:00
parent 1e7b199660
commit 7bc2c2b960
2 changed files with 3 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ public class TestNodeManager {
if (geometrySize != 0) {
buff = new MemoryBuffer(geometrySize);
}
var builtGeometry = new BuiltSection(pos, (byte) childExistence, -2, buff, null);
var builtGeometry = new BuiltSection(pos, (byte) childExistence, -2, buff, null, null);
this.nodeManager.processGeometryResult(builtGeometry);
}

View File

@@ -135,7 +135,8 @@ public class BasicSectionGeometryManager extends AbstractSectionGeometryManager
}
var oldMetadata = this.sectionMetadata.set(id, null);
this.geometry.downloadRemove(oldMetadata.geometryPtr, buffer ->
callback.accept(new BuiltSection(oldMetadata.position, oldMetadata.childExistence, oldMetadata.aabb, buffer.copy(), oldMetadata.offsets))
//TODO: occupancy
callback.accept(new BuiltSection(oldMetadata.position, oldMetadata.childExistence, oldMetadata.aabb, buffer.copy(), oldMetadata.offsets, null))
);
//this.geometry.free(oldMetadata.geometryPtr);
this.invalidatedSectionIds.add(id);