aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-09-19 02:01:39 -0500
committermat <git@matdoes.dev>2023-09-19 02:01:39 -0500
commit83cce236145cdab1872a472a70943b669a880965 (patch)
tree2ce4a6c6e46b887e100e3e710e4c809d3a1e7279 /azalea-client/src
parent51963990bc0cbbbca388b2ed015fd64ff6492d7b (diff)
downloadazalea-drasl-83cce236145cdab1872a472a70943b669a880965.tar.xz
add Loaded component and fix clamping look direction
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/client.rs7
-rw-r--r--azalea-client/src/movement.rs2
2 files changed, 6 insertions, 3 deletions
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,