Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Oct 13, 2024
1 parent 1d7da97 commit ebb93a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package main

import (
"context"
"fmt"
"github.com/robinbraemer/event"
"go.minekube.com/common/minecraft/color"
"go.minekube.com/common/minecraft/component"
"go.minekube.com/gate/cmd/gate"
"go.minekube.com/gate/pkg/edition/java/proxy"
"mcauth/codes"
"strconv"
)

func main() {
Expand Down Expand Up @@ -44,7 +44,7 @@ func onLogin(e *proxy.PostLoginEvent) {
Content: "Your one time verification code:\n\n",
Extra: []component.Component{
&component.Text{
Content: strconv.Itoa(code),
Content: fmt.Sprintf("%06d", code),
S: component.Style{
Bold: component.True,
Underlined: component.True,
Expand Down

0 comments on commit ebb93a9

Please sign in to comment.