Skip to content
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

Add support for TAG_LongArray #28

Merged
merged 2 commits into from
Jan 7, 2018
Merged

Add support for TAG_LongArray #28

merged 2 commits into from
Jan 7, 2018

Conversation

williewillus
Copy link
Contributor

@williewillus williewillus commented Jan 7, 2018

TAG_LongArray (tag id 12) was introduced somewhere around 1.9/1.10 and is used in the world format of newer versions will be used in the world format starting from 1.13 - add support for it.

I didn't touch the serde implementation as I'm not familiar enough with serde, so additional changes might be needed there.

@atheriel
Copy link
Collaborator

atheriel commented Jan 7, 2018

This is great, thank you! Have you done any testing to see that it works?

@atheriel
Copy link
Collaborator

atheriel commented Jan 7, 2018

Also, don't worry too much about the serde code. It's not that hard to add if you know exactly where to look, but that crate is frozen for the moment since it needs to be ported to the post-1.0 API.

@williewillus
Copy link
Contributor Author

Added a brief test case for all three array types, the NBT file in question was generated using the Java game code (via MCP/Forge)

@atheriel
Copy link
Collaborator

atheriel commented Jan 7, 2018

Looks good to me.

@atheriel atheriel merged commit b071b2b into PistonDevelopers:master Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants