From b9767424f3393a0aed65b713e19a265189a872b0 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 24 Feb 2025 03:55:29 +0000 Subject: don't remove LocalEntity from disconnected players, add new debug logs, and make GameProfile clones cheaper --- azalea-protocol/src/packets/game/c_player_info_update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/packets') 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)?; } -- cgit v1.2.3