From e86087366ff2c5aeacc866a900f33aeba2bda6d0 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 18 Apr 2025 01:09:49 +0200 Subject: box display_name in PlayerInfo to make it smaller --- azalea-client/src/player.rs | 2 +- azalea-protocol/src/packets/game/c_player_info_update.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs index 0940255c..d774e877 100644 --- a/azalea-client/src/player.rs +++ b/azalea-client/src/player.rs @@ -26,7 +26,7 @@ pub struct PlayerInfo { /// The player's display name in the tab list, but only if it's different /// from the player's normal username. Use `player_info.profile.name` to get /// the player's actual username. - pub display_name: Option, + pub display_name: Option>, } /// Add a [`GameProfileComponent`] when an [`AddPlayerEvent`] is received. 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, + pub display_name: Option>, pub list_order: i32, pub update_hat: bool, pub chat_session: Option, @@ -54,7 +54,7 @@ pub struct UpdateLatencyAction { } #[derive(Clone, Debug, AzBuf)] pub struct UpdateDisplayNameAction { - pub display_name: Option, + pub display_name: Option>, } #[derive(Clone, Debug, AzBuf)] pub struct UpdateHatAction { -- cgit v1.2.3