ForeverZer0 / SharpNBT

A pure CLS-compliant C# implementation of the Named Binary Tag (NBT) format specification commonly used with Minecraft applications, allowing easy reading/writing streams and serialization to other formats.
MIT License
25 stars 9 forks source link

Change in Java network protocol #34

Open ForeverZer0 opened 4 weeks ago

ForeverZer0 commented 4 weeks ago

As of version 764 (Minecraft 1.20.2) of the protocol, top-level compound tags sent to clients from the server will omit the "name" field altogether, including the two-byte prefix for the string length, which was typically present, even when empty.

Though untested, I don't see how this won't break things, and an additional option will need added to determine if the name should even attempt to be read when decoding tags from a network stream. It seems Microsoft feels-compelled to add another level of complexity and variation to a simplistic format to save two-bytes of network traffic.