Introduce ChunkCoords type

This commit is contained in:
Matthias Schiffer 2023-01-27 21:21:09 +01:00
parent 0d8b989c10
commit 48e03aa266
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 26 additions and 10 deletions

View file

@ -12,7 +12,7 @@ struct Args {
fn main() -> Result<()> {
let args = Args::parse();
minedmap::io::region::from_file(&args.file)?.foreach_chunk(|x, z, value: fastnbt::Value| {
println!("Chunk({}, {}): {:#x?}", x.0, z.0, value);
minedmap::io::region::from_file(&args.file)?.foreach_chunk(|coords, value: fastnbt::Value| {
println!("Chunk {:?}: {:#x?}", coords, value);
})
}