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)