aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/mining.rs
diff options
context:
space:
mode:
authorShayne Hartford <shaybox@shaybox.com>2024-10-21 20:21:38 -0400
committerGitHub <noreply@github.com>2024-10-21 19:21:38 -0500
commitcd2f298a62819a3fabc52ef17560c2124a74d555 (patch)
tree3e32e4ccc7d9f095696c8e23b688b06cf1188f76 /azalea-client/src/mining.rs
parent5535877a4bddcdc30ef8f752a90e6845b308c3c2 (diff)
downloadazalea-drasl-cd2f298a62819a3fabc52ef17560c2124a74d555.tar.xz
Rename InventoryComponent to Inventory to match other components (#177)
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
Diffstat (limited to 'azalea-client/src/mining.rs')
-rw-r--r--azalea-client/src/mining.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea-client/src/mining.rs b/azalea-client/src/mining.rs
index bda14db0..86a0193c 100644
--- a/azalea-client/src/mining.rs
+++ b/azalea-client/src/mining.rs
@@ -16,7 +16,7 @@ use crate::{
can_use_game_master_blocks, check_is_interaction_restricted, CurrentSequenceNumber,
HitResultComponent, SwingArmEvent,
},
- inventory::{InventoryComponent, InventorySet},
+ inventory::{Inventory, InventorySet},
local_player::{LocalGameMode, PermissionLevel, PlayerAbilities},
movement::MoveEventsSet,
packet_handling::game::SendPacketEvent,
@@ -99,7 +99,7 @@ fn handle_auto_mine(
&HitResultComponent,
Entity,
Option<&Mining>,
- &InventoryComponent,
+ &Inventory,
&MineBlockPos,
&MineItem,
),
@@ -193,7 +193,7 @@ fn handle_start_mining_block_with_direction_event(
mut query: Query<(
&InstanceName,
&LocalGameMode,
- &InventoryComponent,
+ &Inventory,
&FluidOnEyes,
&Physics,
Option<&Mining>,
@@ -359,7 +359,7 @@ pub struct AttackBlockEvent {
/// mining.
fn is_same_mining_target(
target_block: BlockPos,
- inventory: &InventoryComponent,
+ inventory: &Inventory,
current_mining_pos: &MineBlockPos,
current_mining_item: &MineItem,
) -> bool {
@@ -423,7 +423,7 @@ fn handle_finish_mining_block_event(
mut query: Query<(
&InstanceName,
&LocalGameMode,
- &InventoryComponent,
+ &Inventory,
&PlayerAbilities,
&PermissionLevel,
&mut CurrentSequenceNumber,
@@ -522,7 +522,7 @@ fn continue_mining_block(
Entity,
&InstanceName,
&LocalGameMode,
- &InventoryComponent,
+ &Inventory,
&MineBlockPos,
&MineItem,
&FluidOnEyes,