Merge pull request #313 from MohmmadQunibi/accept-resource-packs

Make the bot accept resource packs
This commit is contained in:
Max Robinson 2024-11-16 13:26:19 -06:00 committed by GitHub
commit da38a98172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.vscode/
.idea/
node_modules/
package-lock.json
code_records/

View file

@ -68,6 +68,9 @@ export function initBot(username) {
bot.loadPlugin(collectblock);
bot.loadPlugin(autoEat);
bot.loadPlugin(armorManager); // auto equip armor
bot.once('resourcePack', () => {
bot.acceptResourcePack();
});
return bot;
}