diff options
| author | mat <git@matdoes.dev> | 2025-10-04 12:52:57 -0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-04 12:52:57 -0300 |
| commit | 43f20b821ce26af148156e705f4c1fd3f956beb5 (patch) | |
| tree | bfe797e92cd496f4cee59bb078d378909a3823ed /azalea-client/src/plugins/interact | |
| parent | a7e2f92b169d6079ba09b2190fefd2d539024a68 (diff) | |
| download | azalea-drasl-43f20b821ce26af148156e705f4c1fd3f956beb5.tar.xz | |
upgrade deps and rename SystemSets to follow bevy's new naming convention
Diffstat (limited to 'azalea-client/src/plugins/interact')
| -rw-r--r-- | azalea-client/src/plugins/interact/mod.rs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/azalea-client/src/plugins/interact/mod.rs b/azalea-client/src/plugins/interact/mod.rs index 27dba1d4..52862a38 100644 --- a/azalea-client/src/plugins/interact/mod.rs +++ b/azalea-client/src/plugins/interact/mod.rs @@ -19,7 +19,8 @@ use azalea_entity::{ }; use azalea_inventory::{ItemStack, ItemStackData, components}; use azalea_physics::{ - PhysicsSet, collision::entity_collisions::update_last_bounding_box, local_player::PhysicsState, + PhysicsSystems, collision::entity_collisions::update_last_bounding_box, + local_player::PhysicsState, }; use azalea_protocol::packets::game::{ ServerboundInteract, ServerboundUseItem, @@ -37,9 +38,9 @@ use crate::{ Client, attack::handle_attack_event, interact::pick::{HitResultComponent, update_hit_result_component}, - inventory::{Inventory, InventorySet}, + inventory::{Inventory, InventorySystems}, local_player::{LocalGameMode, PermissionLevel}, - movement::MoveEventsSet, + movement::MoveEventsSystems, packet::game::SendGamePacketEvent, respawn::perform_respawn, }; @@ -56,26 +57,29 @@ impl Plugin for InteractPlugin { update_attributes_for_held_item, update_attributes_for_gamemode, ) - .in_set(UpdateAttributesSet) + .in_set(UpdateAttributesSystems) .chain(), handle_start_use_item_event, update_hit_result_component .after(clamp_look_direction) .after(update_last_bounding_box), ) - .after(InventorySet) - .after(MoveEventsSet) + .after(InventorySystems) + .after(MoveEventsSystems) .after(perform_respawn) .after(handle_attack_event) .chain(), ) - .add_systems(GameTick, handle_start_use_item_queued.before(PhysicsSet)) + .add_systems( + GameTick, + handle_start_use_item_queued.before(PhysicsSystems), + ) .add_observer(handle_swing_arm_trigger); } } #[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone)] -pub struct UpdateAttributesSet; +pub struct UpdateAttributesSystems; impl Client { /// Right-click a block. |
