fix the login mistake of the example

This commit is contained in:
JunDao
2019-05-20 08:06:06 +08:00
parent edc99fc773
commit b396e2f9d5

View File

@ -48,7 +48,8 @@ func ExampleClient_JoinServer_online() {
panic(err)
}
c.Name = auth.SelectedProfile.Name
c.AsTk = auth.SelectedProfile.ID
c.Auth.UUID = auth.SelectedProfile.ID
c.AsTk = auth.AccessToken
//Connect server
err = c.JoinServer("localhost", 25565)