11 lines
338 B
JavaScript
11 lines
338 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)
|
|
})
|
|
}
|
|
//1.20.2 support wooooooo
|
|
module.exports = registry
|