Skip to content

Commit

Permalink
Fix structure biome lookup position (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo authored Dec 23, 2024
1 parent 78794a7 commit 359550f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worldgen/structure/WorldgenStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export abstract class WorldgenStructure {

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

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

0 comments on commit 359550f

Please sign in to comment.