aboutsummaryrefslogtreecommitdiff
path: root/bot
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-02 14:52:48 -0500
committermat <github@matdoes.dev>2022-10-02 14:52:48 -0500
commit37f9f1c6feda676be30bef31291eaed2a5fc82ce (patch)
tree9e61a94766d0477eeb861165fa721f8b42bb9a85 /bot
parentc9b4dccd7eaeed68ce96cf5167916417d0baa6a7 (diff)
downloadazalea-drasl-37f9f1c6feda676be30bef31291eaed2a5fc82ce.tar.xz
add jumping
Diffstat (limited to 'bot')
-rw-r--r--bot/src/main.rs6
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) => {}
_ => {}
}