ModConfig add ID
This commit is contained in:
@@ -33,6 +33,11 @@ impl ModConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn add_id(mut self, id: &str) -> Self {
|
||||||
|
self.id = id.to_owned();
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
pub fn id(&self) -> &str {
|
pub fn id(&self) -> &str {
|
||||||
&self.id
|
&self.id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user