diff --git a/src/basic_types.rs b/src/basic_types.rs index eb4ab73..e7d1e04 100644 --- a/src/basic_types.rs +++ b/src/basic_types.rs @@ -44,7 +44,7 @@ impl RootConfig { #[inline] pub fn get_mod_location(&self, mod_config: &ModConfig) -> PathBuf { - self.mod_location.join(mod_config.source.clone()) + self.mod_location.join(mod_config.path.clone()) } pub fn get_mod_by_id(&self, id: &str) -> Option { @@ -83,14 +83,14 @@ pub struct ModConfig { pub id: String, /// Relative to the mod_location from root config - pub source: PathBuf, + pub path: PathBuf, } impl ModConfig { pub fn new(id: &str, source: impl AsRef) -> Self { Self { id: id.to_owned(), - source: source.as_ref().to_owned(), + path: source.as_ref().to_owned(), } } }