aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/auto_tool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/auto_tool.rs')
-rw-r--r--azalea/src/auto_tool.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs
index 63561772..1f339c85 100644
--- a/azalea/src/auto_tool.rs
+++ b/azalea/src/auto_tool.rs
@@ -31,7 +31,7 @@ impl AutoToolClientExt for Client {
let block_state = self
.world()
.read()
- .get_block_state(&block_pos)
+ .get_block_state(block_pos)
.unwrap_or_default();
let best_tool_result = self.best_tool_in_hotbar_for_block(block_state);
self.set_selected_hotbar_slot(best_tool_result.index as u8);