forked from feather-rs/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Anvil world persistence (feather-rs#145)
Resolves feather-rs#52. Features implemented: * Sector allocator for region files * RegionFile::save_chunk() * Chunk saving support for chunk worker * Periodic saving of loaded chunks (only those modified), at configurable intervals * Saving of chunks on unload and shutdown * Creation of new region files * Saving of entities * Saving of player data on disconnect and shutdown * Saving of level data This is a squashing of 23 commits: * Implement sector allocator * Implement conversion of chunk data compound to `nbt::Blob` * Initial implementation of RegionHandle::save_chunk (untested) * Initial chunk worker support for chunk saving * Save chunks upon unload * Implement periodic saving of chunks, with interval defined in config * Implement saving of chunks on shutdown * Implement creation of new region files * Save level.dat on shutdown * Begin work on entity saving * Fix saving of item entities * Add more data to chunk save so that the vanilla server accepts it * Fix panic when chunk containing players was saved * Attempt to fix Windows overflow error * Implement saving of player data on disconnect and shutdown * Fix ordering of pitch and yaw * Fix panic on double chunk unload * Fix panic when entities without position are saved * Use more idiomatic early return syntax * Implement conversion from global to section palette for chunk saving
- Loading branch information
1 parent
84352bc
commit f0bf9d1
Showing
26 changed files
with
1,696 additions
and
259 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.