mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Support NeoForge as a loader (compatible with Forge mods)
TODO: implement support in migrate command
This commit is contained in:
@@ -198,7 +198,10 @@ func (pack Pack) GetLoaders() (loaders []string) {
|
||||
} else if _, hasFabric := pack.Versions["fabric"]; hasFabric {
|
||||
loaders = append(loaders, "fabric")
|
||||
}
|
||||
if _, hasForge := pack.Versions["forge"]; hasForge {
|
||||
if _, hasNeoForge := pack.Versions["neoforge"]; hasNeoForge {
|
||||
loaders = append(loaders, "neoforge")
|
||||
loaders = append(loaders, "forge") // Backwards-compatible; for now (could be configurable later)
|
||||
} else if _, hasForge := pack.Versions["forge"]; hasForge {
|
||||
loaders = append(loaders, "forge")
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user