aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs6
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.