diff options
| author | mat <git@matdoes.dev> | 2025-09-21 22:43:55 +0400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-09-21 22:43:55 +0400 |
| commit | f049eee0496083fe6347e2f4a4f7b8e4512883ee (patch) | |
| tree | b45a9301a9c0225f3a8663f7c0eee0c9c90fb010 /azalea-client/src/plugins/mining.rs | |
| parent | 585b51e91a5335eae37bc5af7c0111bb2092b156 (diff) | |
| download | azalea-drasl-f049eee0496083fe6347e2f4a4f7b8e4512883ee.tar.xz | |
fix packet order for ServerboundSetCarriedItem
Diffstat (limited to 'azalea-client/src/plugins/mining.rs')
| -rw-r--r-- | azalea-client/src/plugins/mining.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<AttackBlockEvent>, mut mine_block_progress_events: EventWriter<MineBlockProgressEvent>, |
