-
Notifications
You must be signed in to change notification settings - Fork 145
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
Anvil world persistence #145
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #145 +/- ##
===========================================
- Coverage 61.66% 60.88% -0.79%
===========================================
Files 77 81 +4
Lines 9045 9767 +722
===========================================
+ Hits 5578 5947 +369
- Misses 3467 3820 +353
Continue to review full report at Codecov.
|
0205cf4
to
d9c289c
Compare
d9c289c
to
c3f97c4
Compare
Everything appears to work. |
How is "shutdown" triggered? Is there a hook for sigint/ctrlc that sends a message in the |
Yes, using the ctrlc crate. The shutdown hook is set in |
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
Resolves #52.
RegionFile::save_chunk()