Skip to content

Commit 359550f

Browse files
authored
Fix structure biome lookup position (#45)
1 parent 78794a7 commit 359550f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worldgen/structure/WorldgenStructure.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export abstract class WorldgenStructure {
6363

6464
const pos = this.findGenerationPoint(chunkX, chunkZ, random, context)
6565
if (pos === undefined) return undefined
66-
const biome = context.biomeSource.getBiome(pos[0]>>2, pos[1], pos[2]>>2, context.randomState.sampler)
66+
const biome = context.biomeSource.getBiome(pos[0]>>2, pos[1]>>2, pos[2]>>2, context.randomState.sampler)
6767

6868
return [...this.settings.validBiomes.getEntries()].findIndex((b) => b.key()?.equals(biome)) >= 0 ? pos : undefined
6969
}

0 commit comments

Comments
 (0)