aboutsummaryrefslogtreecommitdiff
path: root/server/bot/src/step.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-30 11:33:03 +0100
committermetamuffin <metamuffin@disroot.org>2025-10-30 11:33:03 +0100
commitaee4e6229b6a796691ba7a5bfff4e2b76700662a (patch)
tree3e4b76e2d07936c2e39f227edd92a8a986b814e8 /server/bot/src/step.rs
parenta85f6200517405918941cc64ba4b734e246bc411 (diff)
downloadhurrycurry-aee4e6229b6a796691ba7a5bfff4e2b76700662a.tar
hurrycurry-aee4e6229b6a796691ba7a5bfff4e2b76700662a.tar.bz2
hurrycurry-aee4e6229b6a796691ba7a5bfff4e2b76700662a.tar.zst
clippy
Diffstat (limited to 'server/bot/src/step.rs')
-rw-r--r--server/bot/src/step.rs22
1 files changed, 9 insertions, 13 deletions
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