aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-24 03:55:29 +0000
committermat <git@matdoes.dev>2025-02-24 03:55:29 +0000
commitb9767424f3393a0aed65b713e19a265189a872b0 (patch)
tree30406dc4af41a003644d3436dc839f939a734fb0 /azalea-protocol/src/packets
parent6a5ab34a2db56c22e1051dfaabf98322c50f53bd (diff)
downloadazalea-drasl-b9767424f3393a0aed65b713e19a265189a872b0.tar.xz
don't remove LocalEntity from disconnected players, add new debug logs, and make GameProfile clones cheaper
Diffstat (limited to 'azalea-protocol/src/packets')
-rw-r--r--azalea-protocol/src/packets/game/c_player_info_update.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_player_info_update.rs b/azalea-protocol/src/packets/game/c_player_info_update.rs
index eb019167..32bfe934 100644
--- a/azalea-protocol/src/packets/game/c_player_info_update.rs
+++ b/azalea-protocol/src/packets/game/c_player_info_update.rs
@@ -80,7 +80,7 @@ impl AzaleaRead for ClientboundPlayerInfoUpdate {
if actions.add_player {
let action = AddPlayerAction::azalea_read(buf)?;
entry.profile.name = action.name;
- entry.profile.properties = action.properties;
+ entry.profile.properties = action.properties.into();
}
if actions.initialize_chat {
let action = InitializeChatAction::azalea_read(buf)?;
@@ -129,7 +129,7 @@ impl AzaleaWrite for ClientboundPlayerInfoUpdate {
if self.actions.add_player {
AddPlayerAction {
name: entry.profile.name.clone(),
- properties: entry.profile.properties.clone(),
+ properties: (*entry.profile.properties).clone(),
}
.azalea_write(buf)?;
}