From 493aae582adbf818dc4cfdbd0390961d36647d77 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 17 Dec 2021 16:38:14 -0600 Subject: fix packets --- azalea-protocol/src/connect.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src/connect.rs') diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index cc06eec3..d3617b3f 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -76,7 +76,7 @@ impl HandshakeConnection { } pub async fn read(&mut self) -> Result { - read_packet::(&self.flow, &mut self.stream, None).await + read_packet::(&self.flow, &mut self.stream, None).await } /// Write a packet to the server @@ -87,7 +87,7 @@ impl HandshakeConnection { impl GameConnection { pub async fn read(&mut self) -> Result { - read_packet::(&self.flow, &mut self.stream, self.compression_threshold).await + read_packet::(&self.flow, &mut self.stream, self.compression_threshold).await } /// Write a packet to the server @@ -98,7 +98,7 @@ impl GameConnection { impl StatusConnection { pub async fn read(&mut self) -> Result { - read_packet::(&self.flow, &mut self.stream, None).await + read_packet::(&self.flow, &mut self.stream, None).await } /// Write a packet to the server @@ -109,7 +109,8 @@ impl StatusConnection { impl LoginConnection { pub async fn read(&mut self) -> Result { - read_packet::(&self.flow, &mut self.stream, self.compression_threshold).await + read_packet::(&self.flow, &mut self.stream, self.compression_threshold) + .await } /// Write a packet to the server -- cgit v1.2.3