更新版本号至1.15.2

Updates code to minecraft 1.15.2 (protocol 578)
This commit is contained in:
David McNett
2020-01-22 12:17:58 -06:00
parent 4370b6c3cd
commit beac876beb
2 changed files with 4 additions and 3 deletions

View File

@ -6,13 +6,14 @@ package bot
import (
"fmt"
"net"
mcnet "github.com/Tnze/go-mc/net"
pk "github.com/Tnze/go-mc/net/packet"
"net"
)
// ProtocolVersion , the protocol version number of minecraft net protocol
const ProtocolVersion = 575
const ProtocolVersion = 578
// JoinServer connect a Minecraft server for playing the game.
func (c *Client) JoinServer(addr string, port int) (err error) {