aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-16 16:00:59 -0600
committermat <github@matdoes.dev>2021-12-16 16:00:59 -0600
commit999116ed7c5edf113e12aae150c2e23974d539dc (patch)
treeac0375d3a9c3647de7da22d1e7ce1496bcd2072d /azalea-protocol/src/packets
parentaea5ffaccb8d626ee1eaf6b5523b12c6b149820c (diff)
downloadazalea-drasl-999116ed7c5edf113e12aae150c2e23974d539dc.tar.xz
add map to mc_buf
Diffstat (limited to 'azalea-protocol/src/packets')
-rw-r--r--azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs2
1 files changed, 1 insertions, 1 deletions
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<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
buf: &mut BufReader<T>,
) -> Result<LoginPacket, String> {
- 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?;