Skip to content

Commit

Permalink
core/region_processor: rename path to input_path in process_region()
Browse files Browse the repository at this point in the history
Make the variable names more consistent.
  • Loading branch information
neocturne committed Oct 12, 2023
1 parent 920547f commit 38da161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/region_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 139,8 @@ impl<'a> RegionProcessor<'a> {
let mut processed_region = ProcessedRegion::default();
let mut lightmap = image::GrayAlphaImage::new(N, N);

let path = self.config.region_path(coords);
let input_timestamp = fs::modified_timestamp(&path)?;
let input_path = self.config.region_path(coords);
let input_timestamp = fs::modified_timestamp(&input_path)?;

let output_path = self.config.processed_path(coords);
let output_timestamp = fs::read_timestamp(&output_path, FILE_META_VERSION);
Expand All @@ -155,7 155,7 @@ impl<'a> RegionProcessor<'a> {

debug!("Processing region r.{}.{}.mca", coords.x, coords.z);

crate::nbt::region::from_file(path)?.foreach_chunk(
crate::nbt::region::from_file(input_path)?.foreach_chunk(
|chunk_coords, data: world::de::Chunk| {
let Some(layer::LayerData {
blocks,
Expand Down

0 comments on commit 38da161

Please sign in to comment.