hold_item -> hold

This commit is contained in:
mat 2022-05-09 19:34:51 -05:00
parent fd3a5ea87f
commit ef3cbe27f2

View file

@ -40,7 +40,7 @@ loop {
}, },
Event::Hunger(h) { Event::Hunger(h) {
if !h.using_held_item() && h.hunger <= 17 { if !h.using_held_item() && h.hunger <= 17 {
match bot.hold_item(azalea::ItemGroup::Food).await { match bot.hold(azalea::ItemGroup::Food).await {
Ok(_) => {}, Ok(_) => {},
Err(e) => { Err(e) => {
println!("{}", e); println!("{}", e);