Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
fix: don't install external file if not required
Browse files Browse the repository at this point in the history
It's simply too hard to reliably disable external files, as they
can be extracted into directories.
  • Loading branch information
ViRb3 committed Nov 22, 2020
1 parent 7bf4b31 commit 612a962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curseforge/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (i *ModpackInstaller) processMods(manifest *CornManifest, destPath string)
return err
}
request := resp.Request
if file, ok := request.Tag.(ExternalFile); ok && file.Extract.Enable {
if file, ok := request.Tag.(ExternalFile); ok && file.Extract.Enable && file.Required {
log.Printf("Extracting external file '%s'...", file.Name)
if err := i.extractExternalFile(file, request.Filename); err != nil {
return err
Expand Down

0 comments on commit 612a962

Please sign in to comment.