Skip to content

Commit 853d226

Browse files
committed
Handle missing biome data.
1 parent 13f37b9 commit 853d226

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

viewer/lib/world.js

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class World {
7272
const block = this.blockCache[stateId]
7373
block.position = loc
7474
block.biome = this.biomeCache[column.getBiome(locInChunk)]
75+
if (block.biome === undefined) {
76+
block.biome = this.biomeCache[1]
77+
}
7578
return block
7679
}
7780
}

0 commit comments

Comments
 (0)