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

Fix world.dat serialization #543

Closed
wants to merge 3 commits into from

Conversation

kralverde
Copy link
Contributor

Description

The world.dat was not being properly serialized (the compression read/write buffers were flipped on the write function and it does not seem our nbt serializer works properly).

This PR fixes world.dat serialization and deserialization and adds a backup of world.dat as vanilla servers do.

This also fixes world generation not aligning with loaded worlds.

Testing

  • Added a test to verify the seed persists across a save/load

Please follow our Coding Guidelines

@kralverde
Copy link
Contributor Author

@Snowiiii added the version check

@kralverde kralverde mentioned this pull request Feb 14, 2025
@kralverde
Copy link
Contributor Author

Serialization is fixed in #549. I'll open a new PR for the version check

@kralverde kralverde closed this Feb 14, 2025
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