aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/container.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/azalea/src/container.rs b/azalea/src/container.rs
index 2394551b..57d0b369 100644
--- a/azalea/src/container.rs
+++ b/azalea/src/container.rs
@@ -47,7 +47,7 @@ pub trait ContainerClientExt {
/// bot.chat("no chest found");
/// return;
/// };
- /// let container = bot.open_container_at(target_pos).await;
+ /// let container = bot.open_container_at(target_pos, None).await;
/// # }
/// ```
fn open_container_at(
@@ -134,10 +134,10 @@ impl ContainerClientExt for Client {
}
elapsed_ticks += 1;
- if let Some(timeout_ticks) = timeout_ticks {
- if elapsed_ticks >= timeout_ticks {
- return None;
- }
+ if let Some(timeout_ticks) = timeout_ticks
+ && elapsed_ticks >= timeout_ticks
+ {
+ return None;
}
}