diff options
| author | mat <github@matdoes.dev> | 2022-01-01 19:44:51 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-01-01 19:44:51 -0600 |
| commit | e81b85dd5bdd6d42ee84f24ed4a142f6141f170e (patch) | |
| tree | 16d950954429b403e2adcc582feb64da73da42df /azalea-protocol/src/packets/login | |
| parent | 1a961d968b80b720ef2d3900c0b95e1c16a0089e (diff) | |
| download | azalea-drasl-e81b85dd5bdd6d42ee84f24ed4a142f6141f170e.tar.xz | |
add a couple more packets
Diffstat (limited to 'azalea-protocol/src/packets/login')
| -rw-r--r-- | azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs | 2 |
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 2bc1fc1e..048fa53f 100644 --- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs @@ -26,7 +26,7 @@ impl ClientboundCustomQueryPacket { ) -> Result<LoginPacket, String> { let transaction_id = buf.read_varint().await? as u32; let identifier = ResourceLocation::new(&buf.read_utf().await?)?; - let data = buf.read_bytes(1048576).await?; + let data = buf.read_bytes_with_len(1048576).await?; Ok(ClientboundCustomQueryPacket { transaction_id, identifier, |
