aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/mod.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/src/pathfinder/mod.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/src/pathfinder/mod.rs')
-rw-r--r--azalea/src/pathfinder/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs
index 81b2b845..90b506e9 100644
--- a/azalea/src/pathfinder/mod.rs
+++ b/azalea/src/pathfinder/mod.rs
@@ -121,7 +121,7 @@ impl Plugin for PathfinderPlugin {
}
/// A component that makes this client able to pathfind.
-#[derive(Component, Default, Clone)]
+#[derive(Clone, Component, Default)]
#[non_exhaustive]
pub struct Pathfinder {
pub goal: Option<Arc<dyn Goal>>,
@@ -132,7 +132,7 @@ pub struct Pathfinder {
/// A component that's present on clients that are actively following a
/// pathfinder path.
-#[derive(Component, Clone)]
+#[derive(Clone, Component)]
pub struct ExecutingPath {
pub path: VecDeque<astar::Edge<BlockPos, moves::MoveData>>,
pub queued_path: Option<VecDeque<astar::Edge<BlockPos, moves::MoveData>>>,
@@ -141,7 +141,7 @@ pub struct ExecutingPath {
pub is_path_partial: bool,
}
-#[derive(Message, Clone, Debug)]
+#[derive(Clone, Debug, Message)]
#[non_exhaustive]
pub struct PathFoundEvent {
pub entity: Entity,