Skip to content

Commit 98eba04

Browse files
committed
Use the legacy map from minecraft-data
1 parent c70f3c2 commit 98eba04

File tree

3 files changed

+2
-1932
lines changed

3 files changed

+2
-1932
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"prismarine-block": "^1.14.1",
4848
"prismarine-nbt": "^2.2.1",
4949
"prismarine-registry": "^1.1.0",
50+
"minecraft-data": "^3.43.0",
5051
"smart-buffer": "^4.1.0",
5152
"uint4": "^0.1.2",
5253
"vec3": "^0.1.3",

src/bedrock/1.3/SubChunk.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { getChecksum } = require('../common/util')
44
const neededBits = require('../../pc/common/neededBits')
55
const Stream = require('../common/Stream')
66
const nbt = require('prismarine-nbt')
7-
const legacyBlockIdMap = require('./legacy.json').blocks
7+
const legacyBlockIdMap = require('minecraft-data').legacy.bedrock.blocks
88

99
class SubChunk {
1010
constructor (registry, Block, options = {}) {

0 commit comments

Comments
 (0)