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:
parent
a5e43348c8
commit
33b8f0db99
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue