From 8ee1e0e6f8ab7d6111e9ac32307ca46097a84bca Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 13 Oct 2025 08:18:13 -1245 Subject: fix broken tests --- azalea/src/container.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'azalea/src') 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; } } -- cgit v1.2.3