aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/local_player.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 11:14:40 +0930
committermat <git@matdoes.dev>2025-12-15 11:14:40 +0930
commitdcbd690f21665e22ea250024a1aa85dec34e6c9e (patch)
tree411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-physics/src/local_player.rs
parentb0a2a809331b0f781517649857d31e0aec67d300 (diff)
downloadazalea-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-physics/src/local_player.rs')
-rw-r--r--azalea-physics/src/local_player.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-physics/src/local_player.rs b/azalea-physics/src/local_player.rs
index f2f213d8..75bbbfb9 100644
--- a/azalea-physics/src/local_player.rs
+++ b/azalea-physics/src/local_player.rs
@@ -6,7 +6,7 @@ use bevy_ecs::component::Component;
/// Usually only present for [`LocalEntity`]s.
///
/// [`LocalEntity`]: azalea_entity::LocalEntity
-#[derive(Default, Component, Clone)]
+#[derive(Clone, Component, Default)]
pub struct PhysicsState {
/// Minecraft only sends a movement packet either after 20 ticks or if the
/// player moved enough. This is that tick counter.
@@ -35,7 +35,7 @@ pub struct PhysicsState {
/// A direction that a player can walk in, including none.
///
/// Superset of [`SprintDirection`].
-#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum WalkDirection {
#[default]
None,