Skip to content

Commit

Permalink
launch: remove old duplicate instance info printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
fiws committed Jun 16, 2021
1 parent 54923f9 commit d12d268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cmd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func (l *launchRunner) RunE(cmd *cobra.Command, args []string) error {
l.instance.UseSystemJava()
}

// launch instance
fmt.Printf("Launching %s\n", l.instance.Desc())
fmt.Printf("Instance location: %s\n", l.instance.Directory)

// we need login credentials to launch the client
// the server needs no creds
if !l.serverMode {
Expand Down
5 changes: 3 additions & 2 deletions cmd/launch/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func (c *CLILauncher) Prepare() error {
instance.SaveLockfile()
}
fmt.Println()
fmt.Println("│ Minecraft " + c.Instance.Lockfile.MinecraftVersion())
fmt.Println("│ Directory: " + instance.Directory)
req := gchalk.Gray(fmt.Sprintf(" resolved from %s", c.Instance.Manifest.Requirements.Minecraft))
fmt.Println("│ Minecraft " + c.Instance.Lockfile.MinecraftVersion() + req)
if instance.Manifest.PlatformString() == "fabric" {
fmt.Printf(
"│ Fabric: %s / %s (loader / mapping)\n",
Expand Down Expand Up @@ -238,6 +238,7 @@ func (c *CLILauncher) printIntro() {

fmt.Println(title)
fmt.Println("│")
fmt.Println("│ Directory: " + c.Instance.Directory)
}

func (c *CLILauncher) printOutro() {
Expand Down

0 comments on commit d12d268

Please sign in to comment.