feat: add function to convert

This commit is contained in:
Anna 2022-11-02 16:37:44 -04:00
parent 95e3d2d756
commit 9e70732191
1 changed files with 7 additions and 0 deletions

View File

@ -16,4 +16,11 @@ impl ManifestKind {
},
}
}
pub fn into_mod_pack(self) -> ModPack {
match self {
Self::V1(mods) => mods.into(),
Self::V2(pack) => pack,
}
}
}