From 4e338230f7145a025b1d2a0ee1538bae4aebba8c Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 5 Mar 2026 03:48:48 -0530 Subject: optimized converting from blockstate to blockkind --- azalea-entity/src/mining.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-entity/src/mining.rs') diff --git a/azalea-entity/src/mining.rs b/azalea-entity/src/mining.rs index bc2e6c46..19346ba9 100644 --- a/azalea-entity/src/mining.rs +++ b/azalea-entity/src/mining.rs @@ -35,7 +35,7 @@ pub fn get_mine_progress( }; let base_destroy_speed = destroy_speed( - block.as_registry_block(), + block.as_block_kind(), held_item, fluid_on_eyes, physics, @@ -52,7 +52,7 @@ fn has_correct_tool_for_drops(block: &dyn BlockTrait, item: &ItemStack) -> bool let Some(tool) = item.get_component::() else { return false; }; - let registry_block = block.as_registry_block(); + let registry_block = block.as_block_kind(); for rule in &tool.rules { if let Some(correct) = rule.correct_for_drops && rule.blocks.contains(registry_block) -- cgit v1.2.3