diff options
| author | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
| commit | 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 (patch) | |
| tree | 7920fec1203e8e96463a142f5f6da6164e76e684 /azalea/src/bot.rs | |
| parent | bdd2fc91e11e2896d8e1c7046df247e1075bd40d (diff) | |
| download | azalea-drasl-34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6.tar.xz | |
update to rust edition 2024
Diffstat (limited to 'azalea/src/bot.rs')
| -rw-r--r-- | azalea/src/bot.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 539a5281..aae8af05 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -1,13 +1,13 @@ use std::f64::consts::PI; +use azalea_client::TickBroadcast; use azalea_client::interact::SwingArmEvent; use azalea_client::mining::Mining; -use azalea_client::TickBroadcast; use azalea_core::position::{BlockPos, Vec3}; use azalea_core::tick::GameTick; use azalea_entity::{ - clamp_look_direction, metadata::Player, EyeHeight, Jumping, LocalEntity, LookDirection, - Position, + EyeHeight, Jumping, LocalEntity, LookDirection, Position, clamp_look_direction, + metadata::Player, }; use azalea_physics::PhysicsSet; use bevy_app::Update; @@ -185,8 +185,7 @@ fn look_at_listener( direction_looking_at(&position.up(eye_height.into()), &event.position); trace!( "look at {:?} (currently at {:?})", - event.position, - **position + event.position, **position ); *look_direction = new_look_direction; } |
