diff options
| author | mat <github@matdoes.dev> | 2021-12-16 16:00:59 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-16 16:00:59 -0600 |
| commit | 999116ed7c5edf113e12aae150c2e23974d539dc (patch) | |
| tree | ac0375d3a9c3647de7da22d1e7ce1496bcd2072d /azalea-protocol/src/read.rs | |
| parent | aea5ffaccb8d626ee1eaf6b5523b12c6b149820c (diff) | |
| download | azalea-drasl-999116ed7c5edf113e12aae150c2e23974d539dc.tar.xz | |
add map to mc_buf
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rw-r--r-- | azalea-protocol/src/read.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 6f242e8b..704774b8 100644 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -15,10 +15,10 @@ pub async fn read_packet<P: ProtocolPacket>( // the first thing minecraft sends us is the length as a varint, which can be up to 5 bytes long let mut buf = BufReader::with_capacity(4 * 1024 * 1024, stream); - let (_packet_size, _packet_size_varint_size) = buf.read_varint().await?; + let _packet_size = buf.read_varint().await?; // then, minecraft tells us the packet id as a varint - let (packet_id, _packet_id_size) = buf.read_varint().await?; + let packet_id = buf.read_varint().await?; // if we recognize the packet id, parse it |
