aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/auto_tool.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs
index ace032d9..0f33dd09 100644
--- a/azalea/src/auto_tool.rs
+++ b/azalea/src/auto_tool.rs
@@ -1,4 +1,4 @@
-use azalea_block::{Block, BlockState, fluid_state::FluidKind};
+use azalea_block::{BlockState, BlockTrait, fluid_state::FluidKind};
use azalea_client::{Client, inventory::Inventory};
use azalea_entity::{FluidOnEyes, Physics};
use azalea_inventory::{ItemStack, Menu, components};
@@ -52,7 +52,7 @@ pub fn accurate_best_tool_in_hotbar_for_block(
let mut best_speed = 0.;
let mut best_slot = None;
- let block = Box::<dyn Block>::from(block);
+ let block = Box::<dyn BlockTrait>::from(block);
let registry_block = block.as_registry_block();
if matches!(