2023-12-17 14:55:27 -05:00
|
|
|
const createRegistry = require('prismarine-registry')
|
|
|
|
|
2024-01-12 12:24:01 -05:00
|
|
|
function registry (bot) {
|
2023-12-17 14:55:27 -05:00
|
|
|
bot.on('packet.login', packet => {
|
|
|
|
bot.registry = createRegistry(bot._client.version)
|
|
|
|
bot.registry.loadDimensionCodec(packet.dimensionCodec)
|
|
|
|
bot.emit('registry_ready', bot.registry)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-01-12 12:24:01 -05:00
|
|
|
module.exports = registry
|