mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-22 09:14:31 +02:00
Support NeoForge as a loader (compatible with Forge mods)
TODO: implement support in migrate command
This commit is contained in:
@@ -193,6 +193,8 @@ var exportCmd = &cobra.Command{
|
||||
dependencies["fabric-loader"] = fabricVersion
|
||||
} else if forgeVersion, ok := pack.Versions["forge"]; ok {
|
||||
dependencies["forge"] = forgeVersion
|
||||
} else if neoforgeVersion, ok := pack.Versions["neoforge"]; ok {
|
||||
dependencies["neoforge"] = neoforgeVersion
|
||||
}
|
||||
|
||||
manifest := Pack{
|
||||
|
@@ -155,7 +155,7 @@ func getProjectTypeFolder(projectType string, fileLoaders []string, packLoaders
|
||||
}
|
||||
return "shaderpacks", nil
|
||||
} else if projectType == "mod" {
|
||||
// Look up pack loaders in the list of loaders (note this is currently filtered to quilt/fabric/forge)
|
||||
// Look up pack loaders in the list of loaders (note this is currently filtered to quilt/fabric/neoforge/forge)
|
||||
bestLoaderIdx := math.MaxInt
|
||||
for _, v := range fileLoaders {
|
||||
if slices.Contains(packLoaders, v) {
|
||||
|
Reference in New Issue
Block a user