mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +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(
|
||||
&self,
|
||||
region: RegionCoords,
|
||||
coords: RegionCoords,
|
||||
processed_data: &ChunkArray<Option<Box<world::layer::BlockInfoArray>>>,
|
||||
) -> 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)?;
|
||||
|
||||
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(|| {
|
||||
format!(
|
||||
"Failed to rename {} to {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue