diff options
| author | mat <git@matdoes.dev> | 2025-03-27 21:28:08 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-27 21:28:13 +0000 |
| commit | 02de98240f3642019b1c8104b00bc4a9d6d17e71 (patch) | |
| tree | 1fd7074164a9cb1eb6d1012e4662cef61f10891d /azalea-protocol/src/packets | |
| parent | 37cde3ad3245675c54e70a4ded362f2a60f0d8a4 (diff) | |
| download | azalea-drasl-02de98240f3642019b1c8104b00bc4a9d6d17e71.tar.xz | |
fix not replying to ping packets in config state
Diffstat (limited to 'azalea-protocol/src/packets')
| -rw-r--r-- | azalea-protocol/src/packets/game/c_player_chat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/packets/game/c_player_chat.rs b/azalea-protocol/src/packets/game/c_player_chat.rs index a9a57301..77dce487 100644 --- a/azalea-protocol/src/packets/game/c_player_chat.rs +++ b/azalea-protocol/src/packets/game/c_player_chat.rs @@ -121,7 +121,7 @@ impl ClientboundPlayerChat { } impl ChatTypeBound { - pub fn translation_key<'a>(&'a self) -> &'a str { + pub fn translation_key(&self) -> &str { match &self.chat_type { Holder::Reference(r) => r.chat_translation_key(), Holder::Direct(d) => d.chat.translation_key.as_str(), |
