aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/ping.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-29 15:38:33 -0500
committermat <github@matdoes.dev>2022-07-29 15:38:33 -0500
commitf22a386c78ed6cae638d35888a5376cfa48c1a90 (patch)
tree6356bf5748cb9154d11c04c785f8cd27a40c6b8b /azalea-client/src/ping.rs
parent1b602d0be793394ac2b0d009b77c6a877a4efb7d (diff)
downloadazalea-drasl-f22a386c78ed6cae638d35888a5376cfa48c1a90.tar.xz
fix errors in az-client
Diffstat (limited to 'azalea-client/src/ping.rs')
-rwxr-xr-xazalea-client/src/ping.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/ping.rs b/azalea-client/src/ping.rs
index 8ecff7ca..c4ef2915 100755
--- a/azalea-client/src/ping.rs
+++ b/azalea-client/src/ping.rs
@@ -5,7 +5,8 @@ use azalea_protocol::{
handshake::client_intention_packet::ClientIntentionPacket,
status::{
clientbound_status_response_packet::ClientboundStatusResponsePacket,
- serverbound_status_request_packet::ServerboundStatusRequestPacket, StatusPacket,
+ serverbound_status_request_packet::ServerboundStatusRequestPacket,
+ ClientboundStatusPacket,
},
ConnectionProtocol, PROTOCOL_VERSION,
},
@@ -38,7 +39,6 @@ pub async fn ping_server(
let packet = conn.read().await.unwrap();
match packet {
- StatusPacket::ClientboundStatusResponsePacket(p) => Ok(p),
- _ => Err("Invalid packet type".to_string()),
+ ClientboundStatusPacket::ClientboundStatusResponsePacket(p) => Ok(p),
}
}