diff options
| author | Shayne Hartford <shaybox@shaybox.com> | 2024-10-21 20:21:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-21 19:21:38 -0500 |
| commit | cd2f298a62819a3fabc52ef17560c2124a74d555 (patch) | |
| tree | 3e32e4ccc7d9f095696c8e23b688b06cf1188f76 /azalea/src/auto_tool.rs | |
| parent | 5535877a4bddcdc30ef8f752a90e6845b308c3c2 (diff) | |
| download | azalea-drasl-cd2f298a62819a3fabc52ef17560c2124a74d555.tar.xz | |
Rename InventoryComponent to Inventory to match other components (#177)
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
Diffstat (limited to 'azalea/src/auto_tool.rs')
| -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 77345acc..e5a627ba 100644 --- a/azalea/src/auto_tool.rs +++ b/azalea/src/auto_tool.rs @@ -1,5 +1,5 @@ use azalea_block::{Block, BlockState}; -use azalea_client::{inventory::InventoryComponent, Client}; +use azalea_client::{inventory::Inventory, Client}; use azalea_entity::{FluidOnEyes, Physics}; use azalea_inventory::{ItemSlot, Menu}; use azalea_registry::{DataComponentKind, Fluid}; @@ -18,7 +18,7 @@ impl AutoToolClientExt for Client { fn best_tool_in_hotbar_for_block(&self, block: BlockState) -> BestToolResult { let mut ecs = self.ecs.lock(); let (inventory, physics, fluid_on_eyes) = - self.query::<(&InventoryComponent, &Physics, &FluidOnEyes)>(&mut ecs); + self.query::<(&Inventory, &Physics, &FluidOnEyes)>(&mut ecs); let menu = &inventory.inventory_menu; accurate_best_tool_in_hotbar_for_block(block, menu, physics, fluid_on_eyes) |
