Offroaders123 / NBTify

A library to read and write NBT files on the web!
http://npm.im/nbtify
MIT License
42 stars 5 forks source link

VarInt Int Array & Long Array #53

Closed Offroaders123 closed 3 weeks ago

Offroaders123 commented 4 weeks ago

When implementing 2.1.0 into Dovetail, I discovered that currently NBTify can't auto-detect the formatting of a little-varint-encoded file.

Offroaders123 commented 4 weeks ago

It looks like, compared to Prismarine-NBT's binary output for a VarInt write, NBTify is incorrectly serializing TAG_Int_Array and TAG_Long_Array values.

Offroaders123 commented 3 weeks ago

So it looks like it actually was a binaried-version of bigtest.snbt that I had made for the demo, and that has an empty root name, as well as the IntArray tag and LongArray tag, both of which appear not to be implemented correctly compared to Prismarine-NBT's output.

Offroaders123 commented 3 weeks ago

All fixed! Published to npm as well.