aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/examples
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/examples')
-rw-r--r--azalea-protocol/examples/handshake_proxy.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/azalea-protocol/examples/handshake_proxy.rs b/azalea-protocol/examples/handshake_proxy.rs
index 34e9553f..f7fb0f5c 100644
--- a/azalea-protocol/examples/handshake_proxy.rs
+++ b/azalea-protocol/examples/handshake_proxy.rs
@@ -4,7 +4,7 @@
use azalea_protocol::{
connect::Connection,
packets::{
- handshake::{
+ handshaking::{
client_intention_packet::ClientIntentionPacket, ClientboundHandshakePacket,
ServerboundHandshakePacket,
},
@@ -145,11 +145,7 @@ async fn handle_connection(stream: TcpStream) -> anyhow::Result<()> {
"Player \'{0}\' from {1} logging in with uuid: {2}",
hello.name,
ip.ip(),
- if let Some(id) = hello.profile_id {
- id.to_string()
- } else {
- String::new()
- }
+ hello.profile_id.to_string()
);
tokio::spawn(transfer(conn.unwrap()?, intent, hello).map(|r| {