Fabric filtering and native export for CurseForge

This commit is contained in:
comp500
2021-06-15 03:09:49 +01:00
parent fd94e671cd
commit 896b9548de
11 changed files with 107 additions and 171 deletions

View File

@@ -31,14 +31,9 @@ type cachedStateStore struct {
Version Version
}
func (u mrUpdater) CheckUpdate(mods []core.Mod, mcVersion string) ([]core.UpdateCheck, error) {
func (u mrUpdater) CheckUpdate(mods []core.Mod, mcVersion string, pack core.Pack) ([]core.UpdateCheck, error) {
results := make([]core.UpdateCheck, len(mods))
pack, err := core.LoadPack()
if err != nil {
return results, err
}
for i, mod := range mods {
rawData, ok := mod.GetParsedUpdateData("modrinth")
if !ok {