aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-26 15:33:41 +0000
committermat <github@matdoes.dev>2022-04-26 15:33:41 +0000
commite5fcfa119309877ab515b921f8ada5f1b1ec4c30 (patch)
treec5084a2f7840979feaf7483e7b598cbc888c509f /azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
parentf9528a9f9a9e73b1d657af7c78d743067307d843 (diff)
downloadazalea-drasl-e5fcfa119309877ab515b921f8ada5f1b1ec4c30.tar.xz
default implementation for read and write Vec<T>
Diffstat (limited to 'azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs')
-rwxr-xr-xazalea-protocol/src/packets/login/clientbound_custom_query_packet.rs3
1 files changed, 2 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 3138106e..9e1e1df5 100755
--- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs
@@ -1,3 +1,4 @@
+use crate::mc_buf::UnsizedByteArray;
use azalea_core::resource_location::ResourceLocation;
use packet_macros::LoginPacket;
use std::hash::Hash;
@@ -7,5 +8,5 @@ pub struct ClientboundCustomQueryPacket {
#[varint]
pub transaction_id: u32,
pub identifier: ResourceLocation,
- pub data: Vec<u8>,
+ pub data: UnsizedByteArray,
}