aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
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?;