different randomising for different layers

This commit is contained in:
minjaesong
2023-11-04 21:49:27 +09:00
parent 79ffaf6294
commit 4bea5e9bf9
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class OregenAutotiling(world: GameWorld, seed: Long, val tilingModes: HashMap<It
Worldgen.threadExecutor.join()
}
private fun getHashCoord(x: Int, y: Int, mod: Int) = (XXHash64.hash(LandUtil.getBlockAddr(world, x, y).toBig64(), mod.toLong()) fmod mod.toLong()).toInt()
private fun getHashCoord(x: Int, y: Int, mod: Int) = (XXHash64.hash(LandUtil.getBlockAddr(world, x, y).toBig64(), ((x*16777619) xor (y+1073)).toLong()) fmod mod.toLong()).toInt()
private fun draw(x: Int) {
for (y in 0 until world.height) {