fix index problem in README.md
This commit is contained in:
10
README.md
10
README.md
@ -57,11 +57,11 @@ a [Handshake Packet](https://wiki.vg/Protocol#Handshake). You can create this pa
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
p := pk.Marshal(
|
p := pk.Marshal(
|
||||||
0x00, // Handshake packet ID
|
0x00, // Handshake packet ID
|
||||||
pk.VarInt(ProtocolVersion), // Protocol version
|
pk.VarInt(ProtocolVersion), // Protocol version
|
||||||
pk.String("localhost"), // Server's address
|
pk.String("localhost"), // Server's address
|
||||||
pk.UnsignedShort(25565), // Server's port
|
pk.UnsignedShort(25565), // Server's port
|
||||||
pk.Byte(1), // 1 for status ping, 2 for login
|
pk.Byte(1), // 1 for status ping, 2 for login
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user