Fixed output name of modpack files
This commit is contained in:
parent
3c8fb9a89f
commit
db9ba30442
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user