fix: damaging terrain would not queue the modified chunk for the autosave

This commit is contained in:
minjaesong
2024-02-16 14:29:47 +09:00
parent 902341bd78
commit b11bbf0130
7 changed files with 24 additions and 10 deletions

View File

@@ -295,6 +295,7 @@ open class IngameInstance(val batch: FlippingSpriteBatch, val isMultiplayer: Boo
open fun modified(layer: Int, x: Int, y: Int) {
// printdbg(this, "Chunk modified: layer $layer ($x, $y)")
modifiedChunks[layer].add(LandUtil.toChunkNum(world, x, y))
}