Skip to content

Fix deserialization of damaged items

Compare
Choose a tag to compare
@boxbeam boxbeam released this 28 Feb 03:45
· 4 commits to master since this release

Seems like at some point, spigot's deserializer stopped being able to automatically convert long -> int. This broke deserialization of damaged items, since the JSON parser would interpret all integer values as a long. Now it will presume them all to be int unless they have the L suffix, and serialization will use the L suffix for longs. This makes the JSON output is technically no longer JSON-compliant.