Remove print statement from tools.RemoveMod (it unfortunately still doesn't work)
This commit is contained in:
parent
268f1b2e43
commit
222fa543b5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user