From 999116ed7c5edf113e12aae150c2e23974d539dc Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 16 Dec 2021 16:00:59 -0600 Subject: add map to mc_buf --- azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets') diff --git a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs index 11ae6d4d..8f501fc9 100644 --- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs @@ -27,7 +27,7 @@ impl ClientboundCustomQueryPacket { pub async fn read( buf: &mut BufReader, ) -> Result { - let transaction_id = buf.read_varint().await?.0 as u32; + let transaction_id = buf.read_varint().await? as u32; // TODO: this should be a resource location let identifier = buf.read_utf().await?; let data = buf.read_bytes(1048576).await?; -- cgit v1.2.3