mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 17:44:52 +01:00
main: rename save_region() argument from region to coords
For consistency.
This commit is contained in:
parent
657d8af8a7
commit
e0467de080
1 changed files with 3 additions and 3 deletions
|
@ -91,13 +91,13 @@ impl<'a> RegionProcessor<'a> {
|
||||||
|
|
||||||
fn save_region(
|
fn save_region(
|
||||||
&self,
|
&self,
|
||||||
region: RegionCoords,
|
coords: RegionCoords,
|
||||||
processed_data: &ChunkArray<Option<Box<world::layer::BlockInfoArray>>>,
|
processed_data: &ChunkArray<Option<Box<world::layer::BlockInfoArray>>>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let tmp_path = self.config.processed_path(region, true);
|
let tmp_path = self.config.processed_path(coords, true);
|
||||||
storage::write(&tmp_path, processed_data)?;
|
storage::write(&tmp_path, processed_data)?;
|
||||||
|
|
||||||
let output_path = self.config.processed_path(region, false);
|
let output_path = self.config.processed_path(coords, false);
|
||||||
fs::rename(&tmp_path, &output_path).with_context(|| {
|
fs::rename(&tmp_path, &output_path).with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"Failed to rename {} to {}",
|
"Failed to rename {} to {}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue