From db9ba3044283045e222e1e27ef4ba015fb0c1007 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Fri, 25 Oct 2024 22:58:52 -0600 Subject: [PATCH] Fixed output name of modpack files --- fclauncher/Prism.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fclauncher/Prism.go b/fclauncher/Prism.go index 2bfcd8c..60e62a2 100644 --- a/fclauncher/Prism.go +++ b/fclauncher/Prism.go @@ -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)