Clean up code, filter version numbers for NeoForge as well as Forge

NeoForge doesn't seem to have an update checker JSON yet, so we can't determine
the recommended version
This commit is contained in:
comp500
2023-07-30 15:09:18 +01:00
parent 234f927be9
commit 4c23e264b0
7 changed files with 29 additions and 23 deletions

View File

@@ -102,7 +102,7 @@ var initCmd = &cobra.Command{
}
}
v := componentVersion
if loader.Name == "forge" {
if loader.Name == "forge" || loader.Name == "neoforge" {
v = cmdshared.GetRawForgeVersion(componentVersion)
}
if !slices.Contains(versions, v) {