FridayNightFunkinBoyfriendBot/modules/registry.js

11 lines
307 B
JavaScript

const createRegistry = require('prismarine-registry')
function inject (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 = inject