diff options
| author | mat <git@matdoes.dev> | 2025-06-02 19:23:59 -0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-03 06:11:26 +0700 |
| commit | 7517a207db658c98d5b97b3b3f44df6725c025a2 (patch) | |
| tree | 5daabe20be53705acd1fee93134421dc23b4d6c6 /azalea/src | |
| parent | abf995a70245028f9cc860ee231dc671f14adfcc (diff) | |
| download | azalea-drasl-7517a207db658c98d5b97b3b3f44df6725c025a2.tar.xz | |
rename the Block trait to BlockTrait to disambiguate with azalea_registry::Block
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/auto_tool.rs | 4 |
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!( |
