diff options
| author | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
| commit | dcbd690f21665e22ea250024a1aa85dec34e6c9e (patch) | |
| tree | 411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-entity/src/plugin | |
| parent | b0a2a809331b0f781517649857d31e0aec67d300 (diff) | |
| download | azalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz | |
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-entity/src/plugin')
| -rw-r--r-- | azalea-entity/src/plugin/indexing.rs | 2 | ||||
| -rw-r--r-- | azalea-entity/src/plugin/mod.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/azalea-entity/src/plugin/indexing.rs b/azalea-entity/src/plugin/indexing.rs index 6f170dc6..edceccc7 100644 --- a/azalea-entity/src/plugin/indexing.rs +++ b/azalea-entity/src/plugin/indexing.rs @@ -16,7 +16,7 @@ use uuid::Uuid; use super::LoadedBy; use crate::{EntityUuid, LocalEntity, Position}; -#[derive(Resource, Default)] +#[derive(Default, Resource)] pub struct EntityUuidIndex { /// An index of entities by their UUIDs entity_by_uuid: HashMap<Uuid, Entity>, diff --git a/azalea-entity/src/plugin/mod.rs b/azalea-entity/src/plugin/mod.rs index 7296f2ff..855b2899 100644 --- a/azalea-entity/src/plugin/mod.rs +++ b/azalea-entity/src/plugin/mod.rs @@ -25,7 +25,7 @@ use crate::{ }; /// A Bevy [`SystemSet`] for various types of entity updates. -#[derive(SystemSet, Debug, Hash, Eq, PartialEq, Clone)] +#[derive(Clone, Debug, Eq, Hash, PartialEq, SystemSet)] pub enum EntityUpdateSystems { /// Create search indexes for entities. Index, @@ -192,7 +192,7 @@ fn is_trapdoor_useable_as_ladder( /// loaded. /// /// If this is empty, the entity will be removed from the ECS. -#[derive(Component, Clone, Deref, DerefMut)] +#[derive(Clone, Component, Deref, DerefMut)] pub struct LoadedBy(pub HashSet<Entity>); pub fn clamp_look_direction(mut query: Query<&mut LookDirection>) { @@ -254,7 +254,7 @@ pub fn update_crouching(query: Query<(&mut Crouching, &Pose), Without<LocalEntit /// /// Internally, this is only used for player physics. Not to be confused with /// the somewhat similarly named [`LoadedBy`]. -#[derive(Component, Clone, Debug, Copy)] +#[derive(Clone, Component, Copy, Debug)] pub struct InLoadedChunk; /// Update the [`InLoadedChunk`] component for all entities in the world. |
