aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/todo
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-28 09:06:47 -0330
committermat <git@matdoes.dev>2025-12-28 09:06:47 -0330
commit839d536e8020b291bc1d213a5e8e823dc513a940 (patch)
tree60cab8b908ad53af0126e2cb1dec670d073936a3 /azalea/examples/todo
parent5b1a78baf757897532be8c308a37c99fb2ca3352 (diff)
downloadazalea-drasl-839d536e8020b291bc1d213a5e8e823dc513a940.tar.xz
add a few more functions for getting common components to Client
Diffstat (limited to 'azalea/examples/todo')
-rw-r--r--azalea/examples/todo/craft_dig_straight_down.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs
index 153af299..d8254aa3 100644
--- a/azalea/examples/todo/craft_dig_straight_down.rs
+++ b/azalea/examples/todo/craft_dig_straight_down.rs
@@ -58,10 +58,7 @@ async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> {
bot.hold(&pickaxe);
loop {
- if let Err(e) = bot
- .dig(azalea::entity::feet_pos(bot.entity()).down(1))
- .await
- {
+ if let Err(e) = bot.dig(bot.entity().feet_pos().down(1)).await {
println!("{e:?}");
break;
}