deterministically random treegen

This commit is contained in:
minjaesong
2024-01-19 03:14:32 +09:00
parent 79bf88f0e8
commit 9f46fade1d
3 changed files with 34 additions and 31 deletions

View File

@@ -201,10 +201,6 @@ object LoadSavegame {
newIngame.worldDisk.getFile(0x1_0000_0000L or layer.toLong().shl(24) or chunk)?.let { chunkFile ->
val (cx, cy) = LandUtil.chunkNumToChunkXY(world, chunk.toInt())
if (layer == 2) {
printdbg(this, "Loading ore layer chunk ($cx, $cy) size: ${chunkFile.getSizePure()}")
}
ReadWorld.decodeChunkToLayer(chunkFile.getContent(), worldLayer[layer]!!, cx, cy)
world.chunkFlags[cy][cx] = world.chunkFlags[cy][cx] or CHUNK_LOADED
}