From 8c97b3e73b3a3b43e3a49f502137a911bfffba96 Mon Sep 17 00:00:00 2001 From: Tricked <72335827+SkyBlockDev@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:36:18 +0200 Subject: [PATCH] fix: use mod.title instead of slug --- github/install.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/github/install.go b/github/install.go index 034ed81..b5c662f 100644 --- a/github/install.go +++ b/github/install.go @@ -224,11 +224,7 @@ func installVersion(mod Mod, version ModReleases, pack core.Pack) error { if folder == "" { folder = "mods" } - if mod.Slug != "" { - path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, mod.Slug+core.MetaExtension)) - } else { - path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, mod.Title+core.MetaExtension)) - } + path = modMeta.SetMetaPath(filepath.Join(viper.GetString("meta-folder-base"), folder, mod.Title+core.MetaExtension)) // If the file already exists, this will overwrite it!!! // TODO: Should this be improved?