diff options
Diffstat (limited to 'server/bot/src/step.rs')
| -rw-r--r-- | server/bot/src/step.rs | 22 |
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 |