diff --git a/src/model/manifest_kind.rs b/src/model/manifest_kind.rs index a979fce..7640202 100644 --- a/src/model/manifest_kind.rs +++ b/src/model/manifest_kind.rs @@ -16,4 +16,11 @@ impl ManifestKind { }, } } + + pub fn into_mod_pack(self) -> ModPack { + match self { + Self::V1(mods) => mods.into(), + Self::V2(pack) => pack, + } + } }