From 83cce236145cdab1872a472a70943b669a880965 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 19 Sep 2023 02:01:39 -0500 Subject: add Loaded component and fix clamping look direction --- azalea-client/src/client.rs | 7 +++++-- azalea-client/src/movement.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index d5f40678..8424bf39 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -22,8 +22,9 @@ use azalea_auth::{game_profile::GameProfile, sessionserver::ClientSessionServerE use azalea_chat::FormattedText; use azalea_core::Vec3; use azalea_entity::{ - indexing::EntityIdIndex, metadata::Health, EntityPlugin, EntityUpdateSet, EyeHeight, - LocalEntity, Position, + indexing::{EntityIdIndex, Loaded}, + metadata::Health, + EntityPlugin, EntityUpdateSet, EyeHeight, LocalEntity, Position, }; use azalea_physics::PhysicsPlugin; use azalea_protocol::{ @@ -316,6 +317,7 @@ impl Client { attack: attack::AttackBundle::default(), _local: LocalEntity, + _loaded: Loaded, }); let client = Client::new( @@ -634,6 +636,7 @@ pub struct JoinedClientBundle { pub attack: attack::AttackBundle, pub _local: LocalEntity, + pub _loaded: Loaded, } pub struct AzaleaPlugin; diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs index 47cbd0ac..3bdcdeac 100644 --- a/azalea-client/src/movement.rs +++ b/azalea-client/src/movement.rs @@ -388,7 +388,7 @@ impl Client { /// An event sent when the client starts walking. This does not get sent for /// non-local entities. -#[derive(Event)] +#[derive(Event, Debug)] pub struct StartWalkEvent { pub entity: Entity, pub direction: WalkDirection, -- cgit v1.2.3