diff options
Diffstat (limited to 'azalea-protocol/src/connect.rs')
| -rw-r--r-- | azalea-protocol/src/connect.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index d3617b3f..3d910d3a 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -81,7 +81,7 @@ impl HandshakeConnection { /// Write a packet to the server pub async fn write(&mut self, packet: HandshakePacket) { - write_packet(packet, &mut self.stream).await; + write_packet(packet, &mut self.stream, None).await; } } @@ -92,7 +92,7 @@ impl GameConnection { /// Write a packet to the server pub async fn write(&mut self, packet: GamePacket) { - write_packet(packet, &mut self.stream).await; + write_packet(packet, &mut self.stream, self.compression_threshold).await; } } @@ -103,7 +103,7 @@ impl StatusConnection { /// Write a packet to the server pub async fn write(&mut self, packet: StatusPacket) { - write_packet(packet, &mut self.stream).await; + write_packet(packet, &mut self.stream, None).await; } } @@ -115,7 +115,7 @@ impl LoginConnection { /// Write a packet to the server pub async fn write(&mut self, packet: LoginPacket) { - write_packet(packet, &mut self.stream).await; + write_packet(packet, &mut self.stream, self.compression_threshold).await; } pub fn set_compression_threshold(&mut self, threshold: i32) { |
