diff options
| author | mat <git@matdoes.dev> | 2025-04-18 01:09:49 +0200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-18 01:09:49 +0200 |
| commit | e86087366ff2c5aeacc866a900f33aeba2bda6d0 (patch) | |
| tree | df59107396e44fa2c10c9a8098f7cfc0a94a8fbf /azalea-protocol | |
| parent | ad45cf5431939d088b97aa8a368ed910332b53d2 (diff) | |
| download | azalea-drasl-e86087366ff2c5aeacc866a900f33aeba2bda6d0.tar.xz | |
box display_name in PlayerInfo to make it smaller
Diffstat (limited to 'azalea-protocol')
| -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 32bfe934..db3d38a5 100644 --- a/azalea-protocol/src/packets/game/c_player_info_update.rs +++ b/azalea-protocol/src/packets/game/c_player_info_update.rs @@ -24,7 +24,7 @@ pub struct PlayerInfoEntry { pub listed: bool, pub latency: i32, pub game_mode: GameMode, - pub display_name: Option<FormattedText>, + pub display_name: Option<Box<FormattedText>>, pub list_order: i32, pub update_hat: bool, pub chat_session: Option<RemoteChatSessionData>, @@ -54,7 +54,7 @@ pub struct UpdateLatencyAction { } #[derive(Clone, Debug, AzBuf)] pub struct UpdateDisplayNameAction { - pub display_name: Option<FormattedText>, + pub display_name: Option<Box<FormattedText>>, } #[derive(Clone, Debug, AzBuf)] pub struct UpdateHatAction { |
