diff options
| author | mat <git@matdoes.dev> | 2025-02-24 03:55:29 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-24 03:55:29 +0000 |
| commit | b9767424f3393a0aed65b713e19a265189a872b0 (patch) | |
| tree | 30406dc4af41a003644d3436dc839f939a734fb0 /azalea-protocol/src/packets | |
| parent | 6a5ab34a2db56c22e1051dfaabf98322c50f53bd (diff) | |
| download | azalea-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.rs | 4 |
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)?; } |
