From 585b51e91a5335eae37bc5af7c0111bb2092b156 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 20 Sep 2025 20:35:16 -1200 Subject: more accurate mining and impl PartialEq for packets --- azalea-entity/src/attributes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-entity/src/attributes.rs') diff --git a/azalea-entity/src/attributes.rs b/azalea-entity/src/attributes.rs index 021fcd56..75423746 100644 --- a/azalea-entity/src/attributes.rs +++ b/azalea-entity/src/attributes.rs @@ -78,14 +78,14 @@ impl AttributeInstance { } } -#[derive(Clone, Debug, AzBuf)] +#[derive(Clone, Debug, AzBuf, PartialEq)] pub struct AttributeModifier { pub id: ResourceLocation, pub amount: f64, pub operation: AttributeModifierOperation, } -#[derive(Clone, Debug, Copy, AzBuf)] +#[derive(Clone, Debug, Copy, AzBuf, PartialEq)] pub enum AttributeModifierOperation { AddValue, AddMultipliedBase, -- cgit v1.2.3