From ed00a5b8f1a9f2fa7cefd8a4ee805fba8dac7278 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 27 Jan 2025 18:14:53 +0000 Subject: [PATCH] don't warn on release mode for unknown PlayerInfoUpdate --- azalea-client/src/packet_handling/game.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs index b5e4432f..33b51071 100644 --- a/azalea-client/src/packet_handling/game.rs +++ b/azalea-client/src/packet_handling/game.rs @@ -568,10 +568,11 @@ pub fn process_packet_events(ecs: &mut World) { info: info.clone(), }); } else { - warn!( - "Ignoring PlayerInfoUpdate for unknown player {}", - updated_info.profile.uuid - ); + let uuid = updated_info.profile.uuid; + #[cfg(debug_assertions)] + warn!("Ignoring PlayerInfoUpdate for unknown player {uuid}"); + #[cfg(not(debug_assertions))] + debug!("Ignoring PlayerInfoUpdate for unknown player {uuid}"); } }