Skip to content

Commit

Permalink
minecraft/dial.go: Expect both PlayStatus and ServerToClientHandshake…
Browse files Browse the repository at this point in the history
… before initial login.
  • Loading branch information
JustTalDevelops committed Mar 18, 2023
1 parent 96cf9d6 commit 31d58c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/dial.go
Expand Up @@ -221,7 +221,7 @@ func (d Dialer) DialContext(ctx context.Context, network, address string) (conn
return nil, conn.wrap(ctx.Err(), "dial")
case <-l:
// We've received our network settings, so we can now send our login request.
conn.expect(packet.IDServerToClientHandshake)
conn.expect(packet.IDServerToClientHandshake, packet.IDPlayStatus)
if err := conn.WritePacket(&packet.Login{ConnectionRequest: request, ClientProtocol: d.Protocol.ID()}); err != nil {
return nil, err
}
Expand Down

0 comments on commit 31d58c5

Please sign in to comment.