mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-19 00:34:31 +02:00
Add a command for changing the acceptable versions (#206)
* feat: add packwiz settings command to allow for changing acceptable versions * Add deduping on the list * Fix typo in comment * Detect out of order list and give the user an option to correct it * Support adding and removing specific versions * Ensure the options aren't nil * Clean up the slice removal boilerplate * Fix usage of slices.Delete
This commit is contained in:
@@ -417,7 +417,7 @@ func getLatestFile(modInfoData modInfo, mcVersions []string, fileID uint32, pack
|
||||
|
||||
// Possible to reach this point without obtaining file info; particularly from GameVersionLatestFiles
|
||||
if fileID == 0 {
|
||||
return modFileInfo{}, errors.New("mod not available for the configured Minecraft version(s) (use the acceptable-game-versions option to accept more) or loader")
|
||||
return modFileInfo{}, errors.New("mod not available for the configured Minecraft version(s) (use the 'packwiz settings acceptable-versions' command to accept more) or loader")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user