Fix "pull" command to forcefully update api cache

This commit is contained in:
endigma 2021-01-30 15:26:35 -04:00
parent 823f678757
commit 61fc43c41a

View File

@ -106,14 +106,9 @@ func main() {
color.Green("> Complete!")
case "pull":
color.Red("> Forcefully updating API Cache")
api.InitAPI()
color.Cyan("> Checking API Cache")
if api.CheckAPICache() == 0 {
color.Green("> API Cache is up to date!")
} else {
color.Red("> API Cache out of date!")
api.UpdateAPICache()
}
api.UpdateAPICache()
case "toggle", "tm", "togglemods":
if tools.ToggleMods() {
color.Cyan("> Mods Enabled")