mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
box display_name in PlayerInfo to make it smaller
This commit is contained in:
parent
ad45cf5431
commit
e86087366f
2 changed files with 3 additions and 3 deletions
|
@ -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<FormattedText>,
|
||||
pub display_name: Option<Box<FormattedText>>,
|
||||
}
|
||||
|
||||
/// Add a [`GameProfileComponent`] when an [`AddPlayerEvent`] is received.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue