mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
hold_item -> hold
This commit is contained in:
parent
fd3a5ea87f
commit
ef3cbe27f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue