Merge branch 'bugfix/modupload' into Feature/update-everything

This commit is contained in:
knoxfighter 2018-08-06 22:52:21 +02:00
commit 89a756e5d2

View File

@ -77,6 +77,13 @@ func (modInfoList *ModInfoList) listInstalledMods() error {
var baseDependency string
for _, dependency := range modInfo.Dependencies {
if strings.HasPrefix(dependency, "base") {
splittedDep := strings.Split(dependency, "=")
if len(splittedDep) == 1 {
log.Printf("basemod without version specified!")
break
}
baseDependency = strings.Split(dependency, "=")[1]
break
}