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 /azalea-client/src/client.rs | |
| parent | c9b4dccd7eaeed68ce96cf5167916417d0baa6a7 (diff) | |
| download | azalea-drasl-37f9f1c6feda676be30bef31291eaed2a5fc82ce.tar.xz | |
add jumping
Diffstat (limited to 'azalea-client/src/client.rs')
| -rw-r--r-- | azalea-client/src/client.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index cca932c0..2b721206 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -85,6 +85,12 @@ pub struct PhysicsState { pub move_direction: MoveDirection, pub forward_impulse: f32, pub left_impulse: f32, + + /// Whether we will jump next tick. This is purely to help with bots, + /// realistic clients should change the `jumping` field in the player entity. + /// + /// TODO: have a convenient way to change the `jumping` field in the player entity. + pub jumping_once: bool, } /// Whether we should ignore errors when decoding packets. |
