From 65aa95f2a50ce5c44a2274abb3a392bf1205e79a Mon Sep 17 00:00:00 2001 From: Julian Krings Date: Thu, 6 Nov 2025 22:25:37 +0100 Subject: [PATCH] fix wrong radius when marking mantle chunks as completed --- .../kotlin/com/volmit/iris/engine/mantle/MatterGenerator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/com/volmit/iris/engine/mantle/MatterGenerator.kt b/core/src/main/kotlin/com/volmit/iris/engine/mantle/MatterGenerator.kt index 27550a108..7764287a0 100644 --- a/core/src/main/kotlin/com/volmit/iris/engine/mantle/MatterGenerator.kt +++ b/core/src/main/kotlin/com/volmit/iris/engine/mantle/MatterGenerator.kt @@ -22,6 +22,7 @@ interface MatterGenerator { val engine: Engine val mantle: Mantle val radius: Int + val realRadius: Int val components: List, Int>> @ChunkCoordinates @@ -39,12 +40,12 @@ interface MatterGenerator { }, { (x, z, c) -> launch(multicore) { acquireChunk(multicore, writer, x, z) .raiseFlagSuspend(MantleFlag.PLANNED, c.flag) { - if (c.isEnabled) c.generateLayer(writer, x, z, context) + c.generateLayer(writer, x, z, context) } }}) } - radius(x, z, radius, { x, z -> + radius(x, z, realRadius, { x, z -> emit(Pair(x, z)) }, { writer.acquireChunk(it.a, it.b)