From 62e78d40e929f8d60d7cf3a5bf076c3cbe16d139 Mon Sep 17 00:00:00 2001 From: Omay <70179858+Omay238@users.noreply.github.com> Date: Sun, 21 Apr 2024 05:43:31 -0600 Subject: [PATCH] Include primary version in printed acceptable versions list (#280) fix #255 --- settings/acceptable_versions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings/acceptable_versions.go b/settings/acceptable_versions.go index a9ff711..4853aaf 100644 --- a/settings/acceptable_versions.go +++ b/settings/acceptable_versions.go @@ -61,6 +61,7 @@ var acceptableVersionsCommand = &cobra.Command{ } // Print success message prettyList := strings.Join(currentVersions, ", ") + prettyList += ", " + modpack.Versions["minecraft"] fmt.Printf("Added %s to acceptable versions list, now %s\n", acceptableVersion, prettyList) } else if flagRemove { acceptableVersion := args[0] @@ -84,6 +85,7 @@ var acceptableVersionsCommand = &cobra.Command{ } // Print success message prettyList := strings.Join(currentVersions, ", ") + prettyList += ", " + modpack.Versions["minecraft"] fmt.Printf("Removed %s from acceptable versions list, now %s\n", acceptableVersion, prettyList) } else { // Overwriting @@ -128,6 +130,7 @@ var acceptableVersionsCommand = &cobra.Command{ } // Print success message prettyList := strings.Join(acceptableVersionsDeduped, ", ") + prettyList += ", " + modpack.Versions["minecraft"] fmt.Printf("Set acceptable versions to %s\n", prettyList) } },