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 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/client.rs') 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; -- cgit v1.2.3