From 222fa543b5bf77064279c49686a17b343feb9b49 Mon Sep 17 00:00:00 2001 From: rainyuu Date: Sun, 31 Jan 2021 12:20:34 +0100 Subject: [PATCH] Remove print statement from tools.RemoveMod (it unfortunately still doesn't work) --- tools/tools.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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