From aee4e6229b6a796691ba7a5bfff4e2b76700662a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 30 Oct 2025 11:33:03 +0100 Subject: clippy --- server/bot/src/step.rs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'server/bot/src/step.rs') diff --git a/server/bot/src/step.rs b/server/bot/src/step.rs index 8f103cff..6031439f 100644 --- a/server/bot/src/step.rs +++ b/server/bot/src/step.rs @@ -121,19 +121,15 @@ impl StepState { boost: false, pos: None, }); - } else { - if self.wait_timer > 0. { - self.wait_timer -= dt; - } else { - if self.interact_stop_pending { - self.interact_stop_pending = false; - out.push(PacketS::Interact { - player: self.me, - hand: self.hand, - target: None, - }); - } - } + } else if self.wait_timer > 0. { + self.wait_timer -= dt; + } else if self.interact_stop_pending { + self.interact_stop_pending = false; + out.push(PacketS::Interact { + player: self.me, + hand: self.hand, + target: None, + }); } } else { self.item_current = game -- cgit v1.3