Skip to content

Commit

Permalink
Default to biome minecraft:void (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherPillow authored Mar 17, 2024
1 parent 844445b commit dc32ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/1.18/chunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = (ChunkColumn, registry) => {
blockStates = nbt.comp({ palette: nbt.list(nbt.comp(blockPalette)), data: nbt.longArray(data) })
}

const biomeNamesPalette = biomePalette.map(biomeId => 'minecraft:' + registry.biomes[biomeId].name)
const biomeNamesPalette = biomePalette.map(biomeId => 'minecraft:' + registry.biomes[biomeId]?.name ?? 'void')

if (!bitsPerBiome) {
biomes = nbt.comp({ palette: nbt.list(nbt.string(biomeNamesPalette)) })
Expand Down

0 comments on commit dc32ad7

Please sign in to comment.