diff --git a/tools/tools.go b/tools/tools.go index 1bda9b0..a0c2f6b 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,7 +1,6 @@ package tools import ( - "fmt" "io/ioutil" "log" "os" @@ -83,9 +82,11 @@ func DownloadMod(depString string) (int, string, []string) { // RemoveMod uninstalls a mod func RemoveMod(depString string) int { + // fmt.Println(depString) status, mod := api.GetModData(depString) + // fmt.Println(mod) if status != 0 { - fmt.Println("> Could not find the mod specified.") + return 1 } modFolder := utils.SystemInfo.PluginDir + "/" + depString + "-" + mod.Versions[0].VersionNumber