11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
const createRegistry = require('prismarine-registry')
|
|
|
|
function registry (bot) {
|
|
bot.on('packet.login', packet => {
|
|
bot.registry = createRegistry(bot._client.version)
|
|
bot.registry.loadDimensionCodec(packet.dimensionCodec)
|
|
bot.emit('registry_ready', bot.registry)
|
|
})
|
|
}
|
|
|
|
module.exports = registry
|