Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat authored Jul 7, 2024
1 parent a2e5790 commit 1f92da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (data, staticData) => {
if (staticData.supportFeature('segmentedRegistryCodecData')) {
// 1.20.5+ - dimension data is now seperated outside the NBT and is sent through
// multiple registry_data { id: registryName, entries: [key, registryData] } packets...
const entries = codec.entries.map(e => ({ id: e.key, name: e.key, element: nbt.simplify(e.value) }))
const entries = codec.entries.map((e, ix) => ({ id: ix, name: e.key, element: nbt.simplify(e.value) }))
handlers[codec.id.replace('minecraft:', '')]?.(entries)
} else {
const dimensionCodec = nbt.simplify(codec)
Expand Down

0 comments on commit 1f92da7

Please sign in to comment.