diff options
Diffstat (limited to 'azalea-client/src/plugins/interact')
| -rw-r--r-- | azalea-client/src/plugins/interact/mod.rs | 8 | ||||
| -rw-r--r-- | azalea-client/src/plugins/interact/pick.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/interact/mod.rs b/azalea-client/src/plugins/interact/mod.rs index 8269197c..df614b8a 100644 --- a/azalea-client/src/plugins/interact/mod.rs +++ b/azalea-client/src/plugins/interact/mod.rs @@ -82,7 +82,7 @@ impl Plugin for InteractPlugin { } } -#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone)] +#[derive(Clone, Debug, Eq, Hash, PartialEq, SystemSet)] pub struct UpdateAttributesSystems; impl Client { @@ -133,7 +133,7 @@ impl Client { /// A component that contains information about our local block state /// predictions. -#[derive(Component, Clone, Debug, Default)] +#[derive(Clone, Component, Debug, Default)] pub struct BlockStatePredictionHandler { /// The total number of changes that this client has made to blocks. seq: u32, @@ -351,7 +351,7 @@ pub fn handle_start_use_item_queued( /// An ECS `Event` that makes the client tell the server that we right-clicked /// an entity. -#[derive(EntityEvent, Clone, Debug)] +#[derive(Clone, Debug, EntityEvent)] pub struct EntityInteractEvent { #[event_target] pub client: Entity, @@ -498,7 +498,7 @@ pub fn can_use_game_master_blocks( /// /// This is purely a visual effect and won't interact with anything in the /// world. -#[derive(EntityEvent, Clone, Debug)] +#[derive(Clone, Debug, EntityEvent)] pub struct SwingArmEvent { pub entity: Entity, } diff --git a/azalea-client/src/plugins/interact/pick.rs b/azalea-client/src/plugins/interact/pick.rs index 580bb50c..8ffe47e8 100644 --- a/azalea-client/src/plugins/interact/pick.rs +++ b/azalea-client/src/plugins/interact/pick.rs @@ -24,7 +24,7 @@ use derive_more::{Deref, DerefMut}; /// A component that contains the block or entity that the player is currently /// looking at. #[doc(alias("looking at", "looking at block", "crosshair"))] -#[derive(Component, Clone, Debug, Deref, DerefMut)] +#[derive(Clone, Component, Debug, Deref, DerefMut)] pub struct HitResultComponent(HitResult); #[allow(clippy::type_complexity)] |
