From 37f9f1c6feda676be30bef31291eaed2a5fc82ce Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 2 Oct 2022 14:52:48 -0500 Subject: add jumping --- azalea-client/src/client.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'azalea-client/src/client.rs') 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. -- cgit v1.2.3