adding newly generated chunks to modified chunks list

This commit is contained in:
minjaesong
2024-01-19 17:22:40 +09:00
parent db383b25c6
commit d821516144

View File

@@ -1085,7 +1085,11 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
).filter { it.y in 0 until world.height }.filter { (cx, cy) ->
world.chunkFlags[cy][cx].and(0x7F) == 0.toByte()
}.forEach { (cx, cy) ->
Worldgen.generateChunkIngame(cx, cy) { cx, cy -> }
Worldgen.generateChunkIngame(cx, cy) { cx, cy ->
listOf(0,1,2).forEach { layer ->
modified(layer, cx, cy)
}
}
}
}