diff options
Diffstat (limited to 'azalea-client/src/interact.rs')
| -rw-r--r-- | azalea-client/src/interact.rs | 9 |
1 files changed, 3 insertions, 6 deletions
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<LocalEntity>, Changed<InventoryComponent>), - >, + mut query: Query<(&mut Attributes, &Inventory), (With<LocalEntity>, Changed<Inventory>)>, ) { for (mut attributes, inventory) in &mut query { let held_item = inventory.held_item(); |
