diff options
| author | mat <git@matdoes.dev> | 2025-06-09 21:33:21 -0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-09 21:33:21 -0330 |
| commit | e4ead93f195d3d91fd809dfc8cfee9cc36aabcbc (patch) | |
| tree | 3be2352136fb71433a57a9cbf938005e8e7f9b5b /azalea-client/src | |
| parent | 086f979a2895e7f15ec61e5704869a0cfc94d16f (diff) | |
| download | azalea-drasl-e4ead93f195d3d91fd809dfc8cfee9cc36aabcbc.tar.xz | |
jump if in water while executing pathfinder path
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/plugins/mining.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/mining.rs b/azalea-client/src/plugins/mining.rs index f69c30f0..89e3d0e2 100644 --- a/azalea-client/src/plugins/mining.rs +++ b/azalea-client/src/plugins/mining.rs @@ -313,7 +313,7 @@ fn handle_mining_queued( physics, ) >= 1. { - // block was broken instantly + // block was broken instantly (instamined) commands.trigger_targets( FinishMiningBlockEvent { position: mining_queued.position, @@ -497,10 +497,10 @@ pub fn handle_stop_mining_block_event( mut events: EventReader<StopMiningBlockEvent>, mut commands: Commands, mut mine_block_progress_events: EventWriter<MineBlockProgressEvent>, - mut query: Query<(&mut Mining, &MineBlockPos, &mut MineProgress)>, + mut query: Query<(&MineBlockPos, &mut MineProgress)>, ) { for event in events.read() { - let (mut _mining, mine_block_pos, mut mine_progress) = query.get_mut(event.entity).unwrap(); + let (mine_block_pos, mut mine_progress) = query.get_mut(event.entity).unwrap(); let mine_block_pos = mine_block_pos.expect("IsMining is true so MineBlockPos must be present"); @@ -639,7 +639,7 @@ pub fn continue_mining_block( )); **mine_progress = 0.; **mine_ticks = 0.; - **mine_delay = 0; + **mine_delay = 5; } mine_block_progress_events.write(MineBlockProgressEvent { |
