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 ability to write anvil chunks #516

Merged
merged 2 commits into from
Sep 3, 2023

Conversation

Earthcomputer
Copy link
Contributor

Objective

Solution

  • Add a write feature to valence_anvil, behind which the region file allocator is hidden (this is a bit more work to keep track of).
  • Users can change the compression method and whether to write oversized chunks, in case they want to write anvil files compatible with older versions of Minecraft.
  • LruCache::try_get_or_insert_mut is something I have pull requested to lru, we can switch to that once it's merged.

crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
crates/valence_anvil/src/lib.rs Outdated Show resolved Hide resolved
@rj00a rj00a merged commit 78a12d4 into valence-rs:main Sep 3, 2023
9 checks passed
@Earthcomputer Earthcomputer deleted the valence_anvil_write branch September 3, 2023 00:23
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.

3 participants