From 02de98240f3642019b1c8104b00bc4a9d6d17e71 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 27 Mar 2025 21:28:08 +0000 Subject: fix not replying to ping packets in config state --- azalea-protocol/src/packets/game/c_player_chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets') 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(), -- cgit v1.2.3