From 7517a207db658c98d5b97b3b3f44df6725c025a2 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 2 Jun 2025 19:23:59 -0330 Subject: rename the Block trait to BlockTrait to disambiguate with azalea_registry::Block --- azalea/src/auto_tool.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src') 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::::from(block); + let block = Box::::from(block); let registry_block = block.as_registry_block(); if matches!( -- cgit v1.2.3