aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}");
}
}