chat package will not ignore the translate message now, but return the row msg.

This commit is contained in:
Tnze
2019-08-07 15:23:25 +08:00
parent 72ba5b7345
commit 73af09e2ea
8 changed files with 54 additions and 39 deletions

View File

@ -20,7 +20,7 @@ import (
"net/http"
"strings"
"github.com/Tnze/go-mc/authenticate"
"github.com/Tnze/go-mc/yggdrasil"
"github.com/Tnze/go-mc/bot"
"github.com/Tnze/go-mc/chat"
_ "github.com/Tnze/go-mc/data/lang/en-us"
@ -103,7 +103,7 @@ func Handle(conn net.Conn) {
case PlayerLogin:
signal := make(chan int)
client := bot.NewClient()
auth, err := authenticate.Authenticate(Email, Paswd)
auth, err := yggdrasil.Authenticate(Email, Paswd)
if err != nil {
panic(err)
}
@ -374,7 +374,7 @@ func (c *Client) encryptionResponse() ([]byte, []byte, error) {
return nil, nil, err
}
if p.ID != 0x01 {
return nil, nil, fmt.Errorf("0x%02X is not Encryption Response", p.ID)
return nil, nil, fmt.Errorf("0x%02X is not Encryption AuthResp", p.ID)
}
var (