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 chunk file in wrong location #74

Merged
merged 4 commits into from
Oct 19, 2024
Merged

Conversation

scd31
Copy link

@scd31 scd31 commented Oct 16, 2024

WIP as I need to clean up the code and fix the progress bar. It's my bed time, I'll try to get that done tomorrow.

There were two separate problems here.

  1. We weren't setting the xPos/zPos chunk data, so the chunks were in the wrong positions.
  2. We were only saving modified chunks from the reference MCA file, however we need to save them all (so that we can update all the positions)

Fixes #53 and #38

)
.unwrap()
.progress_chars("█▓░"),
);

let mut chunks_to_process = self.chunks_to_modify.clone(); // Clone to prevent modifying while iterating
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting rid of this clone cut RAM usage roughly in half (:

@scd31 scd31 marked this pull request as ready for review October 16, 2024 22:25
@scd31 scd31 mentioned this pull request Oct 17, 2024
@louis-e
Copy link
Owner

louis-e commented Oct 19, 2024

Thank you for your amazing contributions. This PR, along with your others, is laying a great foundation for future enhancements and improvements!

@louis-e louis-e merged commit d79593d into louis-e:main Oct 19, 2024
3 checks passed
@scd31
Copy link
Author

scd31 commented Oct 19, 2024

Happy to help! It's a super cool project to work on!

@scd31 scd31 mentioned this pull request Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants