mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -04:00
voronoi: don't offset biome by position
its offset and then reverted. Fixes the pipeline
This commit is contained in:
parent
88b1a0f4f9
commit
4d6f0c9a2c
@ -32,9 +32,9 @@ class VoronoiBiomeAccessor(
|
||||
|
||||
private fun getBiome(seed: Long, x: Int, y: Int, z: Int, chunk: Chunk): Biome? {
|
||||
val offset = getBiomeOffset(seed, x, y, z) // TODO: minecraft supplies absolut values here, hence the biome noise is broken
|
||||
val biomeX = x + unpackX(offset)
|
||||
val biomeY = y + unpackY(offset)
|
||||
val biomeZ = z + unpackZ(offset)
|
||||
val biomeX = unpackX(offset)
|
||||
val biomeY = unpackY(offset)
|
||||
val biomeZ = unpackZ(offset)
|
||||
|
||||
val biomeChunk = chunk.neighbours.trace(biomeX shr 4, biomeZ shr 4)
|
||||
|
||||
@ -104,7 +104,7 @@ class VoronoiBiomeAccessor(
|
||||
biomeZ++
|
||||
}
|
||||
|
||||
return pack(biomeX - x, biomeY - y, biomeZ - z)
|
||||
return pack(biomeX, biomeY, biomeZ)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user