Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Apr 19, 2024
1 parent 7aa87e3 commit 1dddcf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operations/curseforge/curseforge.go
Expand Up @@ -123,7 +123,7 @@ func (c CurseForge) Run(env pufferpanel.Environment) pufferpanel.OperationResult
serverZipPath := getCacheFilePath(serverFile)
logging.Debug.Printf("Extracting modpack from %s\n", serverZipPath)
env.DisplayToConsole(true, "Extracting modpack from %s", serverZipPath)
err = pufferpanel.Extract(nil, serverZipPath, env.GetRootDirectory(), "*", true)
err = pufferpanel.Extract(nil, serverZipPath, env.GetRootDirectory(), "*", true, nil)
if err != nil {
return pufferpanel.OperationResult{Error: err}
}
Expand Down
2 changes: 1 addition & 1 deletion operations/curseforge/modpack.go
Expand Up @@ -84,7 +84,7 @@ func extractFile(zipFile, fileName string) (*os.File, error) {

file, err := os.Open(filepath.Join(folder, fileName))
if err != nil && os.IsNotExist(err) {
err = pufferpanel.Extract(nil, zipFile, folder, fileName, false)
err = pufferpanel.Extract(nil, zipFile, folder, fileName, false, nil)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion servers/server.go
Expand Up @@ -623,7 +623,7 @@ func (p *Server) Extract(source, destination string) error {
return pufferpanel.ErrIllegalFileAccess
}

return pufferpanel.Extract(p.GetFileServer(), sourceFile, destinationFile, "*", false)
return pufferpanel.Extract(p.GetFileServer(), sourceFile, destinationFile, "*", false, nil)
}

func (p *Server) valid() bool {
Expand Down

0 comments on commit 1dddcf6

Please sign in to comment.