mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 06:09:07 +02:00
Rename library crate to minedmap-core
Rustdoc can't deal with a bin and lib crate with the same name.
This commit is contained in:
parent
0542f2ea11
commit
0842cb4ec2
10 changed files with 36 additions and 28 deletions
|
@ -4,18 +4,20 @@ use anyhow::{Context, Result};
|
|||
use indexmap::IndexSet;
|
||||
use rayon::prelude::*;
|
||||
|
||||
use minedmap::{
|
||||
io::{fs, storage},
|
||||
resource::{self, Biome},
|
||||
types::*,
|
||||
world::{
|
||||
use super::{
|
||||
common::*,
|
||||
core::{
|
||||
self,
|
||||
layer::{self, LayerData},
|
||||
io::{fs, storage},
|
||||
resource::{self, Biome},
|
||||
types::*,
|
||||
world::{
|
||||
self,
|
||||
layer::{self, LayerData},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
use super::common::*;
|
||||
|
||||
/// Parses a filename in the format r.X.Z.mca into the contained X and Z values
|
||||
fn parse_region_filename(file_name: &OsStr) -> Option<TileCoords> {
|
||||
let parts: Vec<_> = file_name.to_str()?.split('.').collect();
|
||||
|
@ -136,7 +138,7 @@ impl<'a> RegionProcessor<'a> {
|
|||
|
||||
println!("Processing region r.{}.{}.mca", coords.x, coords.z);
|
||||
|
||||
minedmap::io::region::from_file(path)?.foreach_chunk(
|
||||
core::io::region::from_file(path)?.foreach_chunk(
|
||||
|chunk_coords, data: world::de::Chunk| {
|
||||
let Some(layer::LayerData {
|
||||
blocks,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue