From 8d718a627349bdf1e531fba318abc634a3bec9da Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 7 Feb 2026 21:25:42 +0300 Subject: replace hard-coded block break speed checks --- azalea-entity/src/attributes.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'azalea-entity/src/attributes.rs') diff --git a/azalea-entity/src/attributes.rs b/azalea-entity/src/attributes.rs index 69e98a7b..26f0618e 100644 --- a/azalea-entity/src/attributes.rs +++ b/azalea-entity/src/attributes.rs @@ -21,6 +21,7 @@ pub struct Attributes { pub attack_speed: AttributeInstance, pub water_movement_efficiency: AttributeInstance, pub mining_efficiency: AttributeInstance, + pub block_break_speed: AttributeInstance, pub block_interaction_range: AttributeInstance, pub entity_interaction_range: AttributeInstance, @@ -41,6 +42,7 @@ impl Attributes { Attribute::BlockInteractionRange => &mut self.block_interaction_range, Attribute::EntityInteractionRange => &mut self.entity_interaction_range, Attribute::StepHeight => &mut self.step_height, + Attribute::BlockBreakSpeed => &mut self.block_break_speed, _ => return None, }; Some(value) -- cgit v1.2.3