diff options
Diffstat (limited to 'bot')
| -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) => {} _ => {} } |
