Skip to content

Commit

Permalink
Handle missing biome data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1504 committed Dec 31, 2023
1 parent 13f37b9 commit 853d226
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions viewer/lib/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class World {
const block = this.blockCache[stateId]
block.position = loc
block.biome = this.biomeCache[column.getBiome(locInChunk)]
if (block.biome === undefined) {
block.biome = this.biomeCache[1]
}
return block
}
}
Expand Down

0 comments on commit 853d226

Please sign in to comment.