1
0
Fork 0
mirror of https://github.com/azalea-rs/simdnbt.git synced 2025-08-02 07:26:04 +00:00

fix NbtList::Double write code to be consistent with the others

This commit is contained in:
mat 2024-03-09 19:45:29 -06:00
parent a5e43348c8
commit 33b8f0db99

View file

@ -147,8 +147,7 @@ impl NbtList {
write_with_u32_length(data, 4, &slice_into_u8_big_endian(floats));
}
NbtList::Double(doubles) => {
let bytes = slice_into_u8_big_endian(doubles);
write_with_u32_length(data, 8, &bytes);
write_with_u32_length(data, 8, &slice_into_u8_big_endian(doubles));
}
NbtList::ByteArray(byte_arrays) => {
write_u32(data, byte_arrays.len() as u32);