From 09cdc22b86d0f9ed2bedc76cb92739277b3997e8 Mon Sep 17 00:00:00 2001 From: Shayne Hartford Date: Tue, 12 Nov 2024 13:07:36 -0500 Subject: Make some internal system handles public for use with before/after (#180) --- azalea-client/src/mining.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/mining.rs') diff --git a/azalea-client/src/mining.rs b/azalea-client/src/mining.rs index 86a0193c..1c8461c5 100644 --- a/azalea-client/src/mining.rs +++ b/azalea-client/src/mining.rs @@ -418,7 +418,7 @@ pub struct FinishMiningBlockEvent { pub position: BlockPos, } -fn handle_finish_mining_block_event( +pub fn handle_finish_mining_block_event( mut events: EventReader, mut query: Query<( &InstanceName, @@ -484,7 +484,7 @@ fn handle_finish_mining_block_event( pub struct StopMiningBlockEvent { pub entity: Entity, } -fn handle_stop_mining_block_event( +pub fn handle_stop_mining_block_event( mut events: EventReader, mut send_packet_events: EventWriter, mut mine_block_progress_events: EventWriter, @@ -517,7 +517,7 @@ fn handle_stop_mining_block_event( } #[allow(clippy::too_many_arguments, clippy::type_complexity)] -fn continue_mining_block( +pub fn continue_mining_block( mut query: Query<( Entity, &InstanceName, -- cgit v1.2.3