MojangLoginHandler no longer panic when offline player login to online server

This commit is contained in:
Tnze
2022-06-27 00:41:59 +08:00
parent 3cda841bed
commit 2d6dd8c408

View File

@ -90,7 +90,7 @@ func (d *MojangLoginHandler) AcceptLogin(conn *net.Conn, protocol int32) (name s
if d.OnlineMode { if d.OnlineMode {
var resp *auth.Resp var resp *auth.Resp
//Auth, Encrypt //Auth, Encrypt
resp, err = auth.Encrypt(conn, name, profilePubKey.PubKey) resp, err = auth.Encrypt(conn, name, pubKey.PubKey)
if err != nil { if err != nil {
return return
} }