diff --git a/.gitignore b/.gitignore index 6dc4554..1e92ae7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode/ +.idea/ node_modules/ package-lock.json code_records/ diff --git a/src/utils/mcdata.js b/src/utils/mcdata.js index 04a535a..4df8b2a 100644 --- a/src/utils/mcdata.js +++ b/src/utils/mcdata.js @@ -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; }