diff options
Diffstat (limited to 'azalea-client/src/plugins/inventory')
| -rw-r--r-- | azalea-client/src/plugins/inventory/equipment_effects.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/inventory/mod.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/inventory/equipment_effects.rs b/azalea-client/src/plugins/inventory/equipment_effects.rs index c02f8ad5..47220bf2 100644 --- a/azalea-client/src/plugins/inventory/equipment_effects.rs +++ b/azalea-client/src/plugins/inventory/equipment_effects.rs @@ -78,7 +78,7 @@ pub fn collect_equipment_changes( } } -#[derive(EntityEvent, Debug)] +#[derive(Debug, EntityEvent)] pub struct EquipmentChangesEvent { pub entity: Entity, pub map: HashMap<EquipmentSlot, EquipmentChange>, 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, |
