From cd2f298a62819a3fabc52ef17560c2124a74d555 Mon Sep 17 00:00:00 2001 From: Shayne Hartford Date: Mon, 21 Oct 2024 20:21:38 -0400 Subject: Rename InventoryComponent to Inventory to match other components (#177) (cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c) --- azalea-client/src/interact.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'azalea-client/src/interact.rs') diff --git a/azalea-client/src/interact.rs b/azalea-client/src/interact.rs index 7b14be09..94b60ddc 100644 --- a/azalea-client/src/interact.rs +++ b/azalea-client/src/interact.rs @@ -33,7 +33,7 @@ use tracing::warn; use crate::{ attack::handle_attack_event, - inventory::{InventoryComponent, InventorySet}, + inventory::{Inventory, InventorySet}, local_player::{LocalGameMode, PermissionLevel, PlayerAbilities}, movement::MoveEventsSet, packet_handling::game::{handle_send_packet_event, SendPacketEvent}, @@ -237,7 +237,7 @@ pub fn check_is_interaction_restricted( instance: &Instance, block_pos: &BlockPos, game_mode: &GameMode, - inventory: &InventoryComponent, + inventory: &Inventory, ) -> bool { match game_mode { GameMode::Adventure => { @@ -314,10 +314,7 @@ pub fn handle_swing_arm_event( #[allow(clippy::type_complexity)] fn update_modifiers_for_held_item( - mut query: Query< - (&mut Attributes, &InventoryComponent), - (With, Changed), - >, + mut query: Query<(&mut Attributes, &Inventory), (With, Changed)>, ) { for (mut attributes, inventory) in &mut query { let held_item = inventory.held_item(); -- cgit v1.2.3