-
-
Notifications
You must be signed in to change notification settings - Fork 127
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 Saving #168
base: master
Are you sure you want to change the base?
Anvil Saving #168
Conversation
Comment: d0b6805 added the ability to save chunks to anvil, but converting chunks into bytes is still not done. |
pumpkin-world/src/chunk/anvil.rs
Outdated
fn modulus(a: i32, b: i32) -> i32 { | ||
((a % b) + b) % b | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You never can have enough of modulus functions right 😉
pumpkin-world/src/chunk/anvil.rs
Outdated
let region = ( | ||
((at.x as f32) / 32.0).floor() as i32, | ||
((at.z as f32) / 32.0).floor() as i32, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this also for reading, would probably make sense to have it as a function
I also noticed that there is no compression yet |
872dc7e
to
bd357b0
Compare
`BlockString` is yet another representation of `BlockId`/`BlockState`, but this time it is a string representation.
- Actually write the location table correctly - Stop using windows exclusive .seek_read/write functions
Yooo good job @Snowiiii :) |
This pr aims to add world saving using minecraft .mca files to pumpkin.