diff options
| author | mat <git@matdoes.dev> | 2025-10-13 08:18:13 -1245 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-13 08:18:13 -1245 |
| commit | 8ee1e0e6f8ab7d6111e9ac32307ca46097a84bca (patch) | |
| tree | e75d6f574f0d810bf1c9d6727d052a169b091115 /azalea/src | |
| parent | 907e166f4617eb9ec5ecc776018dd98f3d802b0e (diff) | |
| download | azalea-drasl-8ee1e0e6f8ab7d6111e9ac32307ca46097a84bca.tar.xz | |
fix broken tests
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/container.rs | 10 |
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; } } |
