diff options
| author | mat <git@matdoes.dev> | 2023-09-14 18:17:32 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-14 18:17:32 -0500 |
| commit | 6a37971420e1fcf2d48d68281d99e0d464297687 (patch) | |
| tree | be37f2db52c2899f5d5b965798b8c7fa30443fd6 /azalea/examples | |
| parent | 3621acab758c8bd00ee08feee307a02512f234c8 (diff) | |
| download | azalea-drasl-6a37971420e1fcf2d48d68281d99e0d464297687.tar.xz | |
add ResourcePackEvent event
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot.rs | 4 | ||||
| -rw-r--r-- | azalea/examples/todo/craft_dig_straight_down.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 630ddf00..8e6f5b98 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -221,12 +221,12 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< }; bot.look_at(target_pos.center()); let container = bot.open_container(target_pos).await; - println!("container: {:?}", container); + println!("container: {container:?}"); if let Some(container) = container { if let Some(contents) = container.contents() { for item in contents { if let ItemSlot::Present(item) = item { - println!("item: {:?}", item); + println!("item: {item:?}"); } } } else { diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs index 116cbcc2..6672eaa4 100644 --- a/azalea/examples/todo/craft_dig_straight_down.rs +++ b/azalea/examples/todo/craft_dig_straight_down.rs @@ -63,7 +63,7 @@ async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { .dig(azalea::entity::feet_pos(bot.entity()).down(1)) .await { - println!("{:?}", e); + println!("{e:?}"); break; } } |
