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)