Client-only byte-array decoding fix for Vintage Story 1.22.7.
The native writer stores an unsigned 16-bit length, but the reader treats it as signed. This patch reads lengths 32768–65535 correctly, preventing negative-length failures during inventory/player-data loading. Truncated input still throws; larger or otherwise malformed payloads are not repaired.
Install attributelengthfix_1.0.0.zip in the client Mods folder and restart. No server installation is required for this client reader correction.
Validation: 21 assertions passed against the installed game's API and actual Harmony interception, including the original failure, boundary lengths, nested trees, following-field alignment, truncation and patch removal. Live multiplayer validation remains necessary.
No account settings, logs, saves, crash dumps, local build paths, debug symbols or game assemblies are included.
SHA256: bb08d5300b5c95339b4f28677db5823651c4537be9e1d225ae3cbf781ac75115