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.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs
index 81fe3131..ace032d9 100644
--- a/azalea/src/auto_tool.rs
+++ b/azalea/src/auto_tool.rs
@@ -95,11 +95,11 @@ pub fn accurate_best_tool_in_hotbar_for_block(
}
}
}
- if let Some(this_item_speed) = this_item_speed {
- if this_item_speed > best_speed {
- best_slot = Some(i);
- best_speed = this_item_speed;
- }
+ if let Some(this_item_speed) = this_item_speed
+ && this_item_speed > best_speed
+ {
+ best_slot = Some(i);
+ best_speed = this_item_speed;
}
}