aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/client.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-01 21:26:37 +0000
committermat <git@matdoes.dev>2025-02-01 21:26:37 +0000
commit4562967b617589cb5aa7b401103e84fbb6b0775c (patch)
tree92f98be3c711df7365eef7d2979b62af1a03582a /azalea-client/src/client.rs
parent87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca (diff)
downloadazalea-drasl-4562967b617589cb5aa7b401103e84fbb6b0775c.tar.xz
set player metadata on init instead of login
Diffstat (limited to 'azalea-client/src/client.rs')
-rw-r--r--azalea-client/src/client.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 7c1aca78..1f8ebb53 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -325,6 +325,7 @@ impl Client {
game_profile: GameProfileComponent(game_profile),
client_information: crate::ClientInformation::default(),
instance_holder,
+ metadata: azalea_entity::metadata::PlayerMetadataBundle::default(),
},
InConfigState,
));
@@ -729,6 +730,8 @@ pub struct LocalPlayerBundle {
pub game_profile: GameProfileComponent,
pub client_information: ClientInformation,
pub instance_holder: InstanceHolder,
+
+ pub metadata: azalea_entity::metadata::PlayerMetadataBundle,
}
/// A bundle for the components that are present on a local player that is