mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
Crafted armour is equiped
This commit is contained in:
parent
58fb27cd66
commit
f44e6ee19e
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ export async function craftRecipe(bot, itemName, num=1) {
|
|||
if (placedTable) {
|
||||
await collectBlock(bot, 'crafting_table', 1);
|
||||
}
|
||||
|
||||
//Equip any armor the bot may have crafted.
|
||||
//There is probablly a more efficient method than checking the entire inventory but this is all mineflayer-armor-manager provides. :P
|
||||
bot.armorManager.equipAll();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue