aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/pathfinder/moves')
-rw-r--r--azalea/src/pathfinder/moves/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs
index 44d31bfb..6d1c7c55 100644
--- a/azalea/src/pathfinder/moves/mod.rs
+++ b/azalea/src/pathfinder/moves/mod.rs
@@ -122,7 +122,7 @@ impl ExecuteCtx<'_, '_, '_, '_, '_, '_, '_> {
let block_state = self
.instance
.read()
- .get_block_state(&block)
+ .get_block_state(block)
.unwrap_or_default();
if is_block_state_passable(block_state) {
// block is already passable, no need to mine it
@@ -138,7 +138,7 @@ impl ExecuteCtx<'_, '_, '_, '_, '_, '_, '_> {
let block_state = self
.instance
.read()
- .get_block_state(&block)
+ .get_block_state(block)
.unwrap_or_default();
if is_block_state_passable(block_state) {
// block is already passable, no need to mine it
@@ -191,7 +191,7 @@ impl ExecuteCtx<'_, '_, '_, '_, '_, '_, '_> {
pub fn get_block_state(&self, block: BlockPos) -> BlockState {
self.instance
.read()
- .get_block_state(&block)
+ .get_block_state(block)
.unwrap_or_default()
}
}