Skip to content

Commit

Permalink
ignore --server-file flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Oct 19, 2024
1 parent 164c28d commit 0acab52
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions server/forge.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import (
"fmt"
"github.com/nothub/mrpack-install/web"
"log"
"os"
"os/exec"
"path/filepath"
)

type ForgeInstaller struct {
Expand All @@ -33,21 +31,8 @@ func (inst *ForgeInstaller) Install(serverDir string, serverFile string) error {
return err
}

originalServerPath := filepath.Join(
serverDir,
"libraries",
"net",
"minecraftforge",
"forge",
fmt.Sprintf("%s-%s", inst.MinecraftVersion, inst.ForgeVersion),
fmt.Sprintf("forge-%s-%s-server.jar", inst.MinecraftVersion, inst.ForgeVersion),
)

if serverFile != "" {
err = os.Rename(originalServerPath, filepath.Join(serverDir, serverFile))
if err != nil {
return err
}
log.Println("ignoring --server-file option for forge server installation!")
}

return nil
Expand Down

0 comments on commit 0acab52

Please sign in to comment.