-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't save Arrays #134
Comments
Please format your declaration of the Your current code sets the array |
I'm getting the error
|
I hate to say this took me far too long to figure out, because TAG_Int_Array/TAG_Byte_Array is poorly (wrongly) documented. You must use a BytesIO object. Here's an example of how to use it:
I very much hope this helps someone else avoid spending as much time as I did getting this to work. (I might also suggest you check out Amulet-NBT, it's more up to date and is a more straightforward library. I switched to it after this library was randomly removing four bytes from my array with no explanation) |
I'm unable to save arrays:
This gives me this error:
Same with Byte Array.
The text was updated successfully, but these errors were encountered: