From 0acab52ec0cc87bd0b9bdce91398262de3575aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Sat, 19 Oct 2024 15:46:10 +0200 Subject: [PATCH] ignore --server-file flag --- server/forge.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/server/forge.go b/server/forge.go index ee85cd6..28f8811 100644 --- a/server/forge.go +++ b/server/forge.go @@ -4,9 +4,7 @@ import ( "fmt" "github.com/nothub/mrpack-install/web" "log" - "os" "os/exec" - "path/filepath" ) type ForgeInstaller struct { @@ -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