diff options
Diffstat (limited to 'azalea-client/src/local_player.rs')
| -rw-r--r-- | azalea-client/src/local_player.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index a66b7ad5..2e0ccc75 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -20,7 +20,7 @@ use tokio::{sync::mpsc, task::JoinHandle}; use crate::{ events::{Event as AzaleaEvent, LocalPlayerEvents}, - ClientInformation, WalkDirection, + ClientInformation, }; /// This is a component for our local player entities that are probably in a @@ -51,23 +51,6 @@ pub struct LocalPlayer { pub(crate) write_packets_task: JoinHandle<()>, } -/// Component for entities that can move and sprint. Usually only in -/// [`LocalPlayer`] entities. -#[derive(Default, Component)] -pub struct PhysicsState { - /// Minecraft only sends a movement packet either after 20 ticks or if the - /// player moved enough. This is that tick counter. - pub position_remainder: u32, - pub was_sprinting: bool, - // Whether we're going to try to start sprinting this tick. Equivalent to - // holding down ctrl for a tick. - pub trying_to_sprint: bool, - - pub move_direction: WalkDirection, - pub forward_impulse: f32, - pub left_impulse: f32, -} - /// A component only present in players that contains the [`GameProfile`] (which /// you can use to get a player's name). /// |
