FridayNightFunkinBoyfriendBot/modules/registry.js

12 lines
307 B
JavaScript
Raw Normal View History

2024-02-13 12:11:00 -05:00
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