mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Support any case for modloader input (fixes #36)
This commit is contained in:
parent
b505f5cad6
commit
c6b99a50e2
@ -83,9 +83,9 @@ var initCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
mcVersions.checkValid(mcVersion)
|
mcVersions.checkValid(mcVersion)
|
||||||
|
|
||||||
modLoaderName := viper.GetString("init.modloader")
|
modLoaderName := strings.ToLower(viper.GetString("init.modloader"))
|
||||||
if len(modLoaderName) == 0 {
|
if len(modLoaderName) == 0 {
|
||||||
modLoaderName = initReadValue("Mod loader [fabric]: ", "fabric")
|
modLoaderName = strings.ToLower(initReadValue("Mod loader [fabric]: ", "fabric"))
|
||||||
}
|
}
|
||||||
_, ok := core.ModLoaders[modLoaderName]
|
_, ok := core.ModLoaders[modLoaderName]
|
||||||
if modLoaderName != "none" && !ok {
|
if modLoaderName != "none" && !ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user