mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Modrinth: fix loader folder lookup
This commit is contained in:
parent
66bf34c1c2
commit
c596179c5c
@ -142,7 +142,7 @@ func getProjectTypeFolder(projectType string, fileLoaders []string, packLoaders
|
||||
}
|
||||
}
|
||||
if bestLoaderIdx > -1 && bestLoaderIdx < math.MaxInt {
|
||||
return loaderPreferenceList[bestLoaderIdx], nil
|
||||
return loaderFolders[loaderPreferenceList[bestLoaderIdx]], nil
|
||||
}
|
||||
return "shaderpacks", nil
|
||||
} else if projectType == "mod" {
|
||||
@ -157,7 +157,7 @@ func getProjectTypeFolder(projectType string, fileLoaders []string, packLoaders
|
||||
}
|
||||
}
|
||||
if bestLoaderIdx > -1 && bestLoaderIdx < math.MaxInt {
|
||||
return loaderPreferenceList[bestLoaderIdx], nil
|
||||
return loaderFolders[loaderPreferenceList[bestLoaderIdx]], nil
|
||||
}
|
||||
|
||||
// Datapack loader is "datapack"
|
||||
|
Loading…
x
Reference in New Issue
Block a user