aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-08-10 11:06:31 -1345
committermat <git@matdoes.dev>2025-08-10 14:21:34 -1030
commit827277555d44c606b16df91e1e724f3f0ab9e0a8 (patch)
treefdc3803b322f6df07c2e052251cb59eed3575a5d /azalea-protocol/src
parent5bd7a4b11a37670a093fb68e0f5fb6fe8246191e (diff)
downloadazalea-drasl-827277555d44c606b16df91e1e724f3f0ab9e0a8.tar.xz
use Vec3f32 in entity metadata to fix parsing Vector3 values
Diffstat (limited to 'azalea-protocol/src')
-rw-r--r--azalea-protocol/src/packets/game/c_set_entity_data.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/c_set_entity_data.rs b/azalea-protocol/src/packets/game/c_set_entity_data.rs
index 2691d04b..fea83941 100644
--- a/azalea-protocol/src/packets/game/c_set_entity_data.rs
+++ b/azalea-protocol/src/packets/game/c_set_entity_data.rs
@@ -48,4 +48,17 @@ mod tests {
assert_eq!(buf.position(), contents.len() as u64);
}
+
+ #[test]
+ fn test_read_6b6t_entity_data() {
+ let contents = [
+ 254, 180, 160, 8, 11, 33, 190, 230, 102, 102, 0, 0, 0, 0, 191, 0, 0, 0, 12, 33, 63,
+ 102, 102, 102, 63, 25, 153, 154, 63, 102, 102, 102, 23, 14, 234, 64, 255,
+ ];
+ let mut buf = Cursor::new(contents.as_slice());
+ let packet = ClientboundSetEntityData::azalea_read(&mut buf).unwrap();
+ println!("{packet:?}");
+
+ assert_eq!(buf.position(), contents.len() as u64);
+ }
}