diff options
| author | mat <github@matdoes.dev> | 2022-10-02 14:52:48 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-02 14:52:48 -0500 |
| commit | 37f9f1c6feda676be30bef31291eaed2a5fc82ce (patch) | |
| tree | 9e61a94766d0477eeb861165fa721f8b42bb9a85 /bot/src/main.rs | |
| parent | c9b4dccd7eaeed68ce96cf5167916417d0baa6a7 (diff) | |
| download | azalea-drasl-37f9f1c6feda676be30bef31291eaed2a5fc82ce.tar.xz | |
add jumping
Diffstat (limited to 'bot/src/main.rs')
| -rw-r--r-- | bot/src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 379b3af3..9b2eea1f 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -18,12 +18,16 @@ async fn handle_event(event: Event, mut bot: Client) -> anyhow::Result<()> { match event { Event::Login => { // tokio::time::sleep(std::time::Duration::from_secs(1)).await; - bot.walk(MoveDirection::Forward); + // bot.walk(MoveDirection::Forward); + // loop { // tokio::time::sleep(std::time::Duration::from_secs(2)).await; // } // bot.walk(MoveDirection::None); } + Event::GameTick => { + bot.set_jumping(true); + } Event::Packet(_packet) => {} _ => {} } |
