aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/attributes.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-02-07 21:25:42 +0300
committermat <git@matdoes.dev>2026-02-07 05:48:18 -1245
commit8d718a627349bdf1e531fba318abc634a3bec9da (patch)
tree9b02cebd67e47dbccd986b2ec3d91781468464b4 /azalea-entity/src/attributes.rs
parent4bf82475c6a425bcf6f7d5880009fb9e47be998b (diff)
downloadazalea-drasl-8d718a627349bdf1e531fba318abc634a3bec9da.tar.xz
replace hard-coded block break speed checks
Diffstat (limited to 'azalea-entity/src/attributes.rs')
-rw-r--r--azalea-entity/src/attributes.rs2
1 files changed, 2 insertions, 0 deletions
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)