aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/inventory/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-client/src/plugins/inventory/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-client/src/plugins/inventory/mod.rs')
-rw-r--r--azalea-client/src/plugins/inventory/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/inventory/mod.rs b/azalea-client/src/plugins/inventory/mod.rs
index 93be9e96..09c0d78f 100644
--- a/azalea-client/src/plugins/inventory/mod.rs
+++ b/azalea-client/src/plugins/inventory/mod.rs
@@ -53,7 +53,7 @@ impl Plugin for InventoryPlugin {
}
}
-#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone)]
+#[derive(Clone, Debug, Eq, Hash, PartialEq, SystemSet)]
pub struct InventorySystems;
impl Client {
@@ -102,7 +102,7 @@ impl Client {
/// To watch for the menu being closed, you could use
/// [`ClientsideCloseContainerEvent`]. To close it manually, use
/// [`CloseContainerEvent`].
-#[derive(EntityEvent, Debug, Clone)]
+#[derive(Clone, Debug, EntityEvent)]
pub struct MenuOpenedEvent {
pub entity: Entity,
pub window_id: i32,
@@ -162,7 +162,7 @@ fn handle_container_close_event(
///
/// If you want to watch for a container being opened, you should use
/// [`MenuOpenedEvent`].
-#[derive(EntityEvent, Clone)]
+#[derive(Clone, EntityEvent)]
pub struct ClientsideCloseContainerEvent {
pub entity: Entity,
}
@@ -199,7 +199,7 @@ pub fn handle_client_side_close_container_trigger(
inventory.container_menu_title = None;
}
-#[derive(EntityEvent, Debug)]
+#[derive(Debug, EntityEvent)]
pub struct ContainerClickEvent {
pub entity: Entity,
pub window_id: i32,