From f049eee0496083fe6347e2f4a4f7b8e4512883ee Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 21 Sep 2025 22:43:55 +0400 Subject: fix packet order for ServerboundSetCarriedItem --- azalea-client/src/plugins/mining.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'azalea-client/src/plugins/mining.rs') diff --git a/azalea-client/src/plugins/mining.rs b/azalea-client/src/plugins/mining.rs index b6ac113a..f9bd50f6 100644 --- a/azalea-client/src/plugins/mining.rs +++ b/azalea-client/src/plugins/mining.rs @@ -181,6 +181,9 @@ fn handle_start_mining_block_event( // we're looking at the block (block_hit_result.direction, false) } else { + debug!( + "Got StartMiningBlockEvent but we're not looking at the block. Picking an arbitrary direction instead." + ); // we're not looking at the block, arbitrary direction (Direction::Down, true) }; @@ -201,7 +204,7 @@ pub struct MiningQueued { pub force: bool, } #[allow(clippy::too_many_arguments, clippy::type_complexity)] -fn handle_mining_queued( +pub fn handle_mining_queued( mut commands: Commands, mut attack_block_events: EventWriter, mut mine_block_progress_events: EventWriter, -- cgit v1.2.3