From cce23ec175d3af40c3ec122332866f0fe0326e11 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Thu, 31 Oct 2024 17:50:45 -0600 Subject: [PATCH] fixed work directory --- fclauncher/InstanceManager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fclauncher/InstanceManager.go b/fclauncher/InstanceManager.go index 4c30338..eebd2c1 100644 --- a/fclauncher/InstanceManager.go +++ b/fclauncher/InstanceManager.go @@ -288,6 +288,7 @@ func (i *InstanceManager)LaunchInstance(instance string) { } fmt.Printf("Args: %+v", args) child := exec.Command(filepath.Join(dir, "java", fmt.Sprintf("java-%d-%s", instanceObject.JavaVersion, suffix), "bin", execName), args...) + child.Dir = filepath.Join(dir, "instances", instance, "minecraft") wruntime.WindowHide(i.app.Ctx) data, err := child.CombinedOutput() wruntime.WindowShow(i.app.Ctx)