aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-01-27 18:14:53 +0000
committermat <git@matdoes.dev>2025-01-27 18:14:53 +0000
commited00a5b8f1a9f2fa7cefd8a4ee805fba8dac7278 (patch)
tree8c4fefa8919cd863a5eb53a03059693f7cc3b04c
parentfe423416b494e91f72dc91308b157d734f8c50f2 (diff)
downloadazalea-drasl-ed00a5b8f1a9f2fa7cefd8a4ee805fba8dac7278.tar.xz
don't warn on release mode for unknown PlayerInfoUpdate
-rw-r--r--azalea-client/src/packet_handling/game.rs9
1 files 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}");
}
}