Fixed output name of modpack files

This commit is contained in:
Samuel Walker 2024-10-25 22:58:52 -06:00
parent 3c8fb9a89f
commit db9ba30442

View File

@ -131,7 +131,7 @@ func (p *Prism)InstallModpack(modpack Modpack){
json.Unmarshal(buff.Bytes(), &versions)
version := versions[len(versions)-1]
dname, _ := os.MkdirTemp("", "fclauncher-*")
f, _ := os.OpenFile(filepath.Join(dname, modpack.Name), os.O_CREATE|os.O_RDWR, 0755)
f, _ := os.OpenFile(filepath.Join(dname, modpack.Name+".mrpack"), os.O_CREATE|os.O_RDWR, 0755)
defer f.Close()
HttpDownload(modpack.Id + "/" + version.File, f, p.ctx)