LookAtMySuitBot/js/node_modules/prismarine-registry/lib/index.js

16 lines
374 B
JavaScript

const loader = require('./loader')
module.exports = (version) => {
const staticData = require('minecraft-data')(version)
const data = loader(staticData)
let registry
if (version.startsWith('bedrock_')) {
registry = require('./bedrock')(data, staticData)
} else {
registry = require('./pc')(data, staticData)
}
return Object.assign(data, registry)
}