diff options
| author | mat <git@matdoes.dev> | 2023-09-10 18:18:49 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-10 18:18:49 -0500 |
| commit | 5f8704ccc51d75a05a2441fdd1a8cc9e2ff90173 (patch) | |
| tree | 6df7a21a428a99db15438bb2af87de71936bab27 /azalea | |
| parent | 4885f848a4716987e0e3b30e14952aa9ea0b2647 (diff) | |
| download | azalea-drasl-5f8704ccc51d75a05a2441fdd1a8cc9e2ff90173.tar.xz | |
fix physics bugs
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/examples/testbot.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 14800e9c..630ddf00 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -11,6 +11,7 @@ use azalea::pathfinder::goals::BlockPosGoal; use azalea::protocol::packets::game::ClientboundGamePacket; use azalea::{prelude::*, swarm::prelude::*, BlockPos, GameProfileComponent, WalkDirection}; use azalea::{Account, Client, Event}; +use azalea_client::SprintDirection; use azalea_core::Vec3; use azalea_world::{InstanceName, MinecraftEntityId}; use std::time::Duration; @@ -145,6 +146,9 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< "walk" => { bot.walk(WalkDirection::Forward); } + "sprint" => { + bot.sprint(SprintDirection::Forward); + } "stop" => { bot.set_jumping(false); bot.walk(WalkDirection::None); |
