diff options
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/bot.rs | 5 | ||||
| -rw-r--r-- | azalea/src/pathfinder/moves/mod.rs | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index bca0174b..63a3adcb 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -1,6 +1,5 @@ use std::f64::consts::PI; -use azalea_client::interact::SwingArmEvent; use azalea_client::mining::Mining; use azalea_client::tick_broadcast::{TickBroadcast, UpdateBroadcast}; use azalea_core::position::{BlockPos, Vec3}; @@ -172,10 +171,6 @@ impl BotClientExt for azalea_client::Client { async fn mine(&self, position: BlockPos) { self.start_mining(position); - // vanilla sends an extra swing arm packet when we start mining - self.ecs.lock().send_event(SwingArmEvent { - entity: self.entity, - }); let mut receiver = self.get_tick_broadcaster(); while receiver.recv().await.is_ok() { diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs index 248f0a5c..24dc8ac1 100644 --- a/azalea/src/pathfinder/moves/mod.rs +++ b/azalea/src/pathfinder/moves/mod.rs @@ -166,6 +166,7 @@ impl ExecuteCtx<'_, '_, '_, '_, '_, '_, '_> { if self.should_mine(block) { if at_start_position { + self.look_at(block.center()); self.mine(block); } else { self.look_at(self.start.center()); |
