Closed maddymakesgames closed 2 years ago
Hey! Thanks for the issue. I had a look at your bigtest.nbt, and it looks like your list_test_long
field (renamed to listTest (long)
) is actually a list of longs, rather than a LongArray. NBT has two ways of storing lists of byte/int/long and they're not interchangable.
If you want to capture a list of longs you can use Vec<i64>
instead.
The error message produced here could definitely be improved, as could the documentation around it. That's something I'll keep in mind in future.
whoops, thanks, thought I had tried that but must have changed the ByteArray at the same time.
I'm trying to use fastnbt to deserialize bigtest.nbt and I'm getting "unexpected array type." The error goes away if I comment out the LongArray and ByteArray fields.