aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/todo
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-01-04 01:55:00 -0600
committermat <git@matdoes.dev>2024-01-04 01:55:00 -0600
commit1347f3549282397be6a46b8b7cb76a7900d0690a (patch)
treed3d468db0c9947f2914b6d0d71dc299c1b3e2634 /azalea/examples/todo
parent13e6421cf5aeeddc035f42141da776d09d177e33 (diff)
downloadazalea-drasl-1347f3549282397be6a46b8b7cb76a7900d0690a.tar.xz
rename open_container to open_container_at and add get_open_container
Diffstat (limited to 'azalea/examples/todo')
-rw-r--r--azalea/examples/todo/craft_dig_straight_down.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs
index 6672eaa4..7b75d2db 100644
--- a/azalea/examples/todo/craft_dig_straight_down.rs
+++ b/azalea/examples/todo/craft_dig_straight_down.rs
@@ -38,7 +38,7 @@ async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> {
bot.goto(pathfinder::Goals::NearXZ(5, azalea::BlockXZ(0, 0)))
.await;
let chest = bot
- .open_container(&bot.world().find_block(azalea::Block::Chest))
+ .open_container_at(&bot.world().find_block(azalea::Block::Chest))
.await
.unwrap();
bot.take_amount_from_container(&chest, 5, |i| i.id == "#minecraft:planks")