diff --git a/README.md b/README.md index a03505e..24644de 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Go-MC -![Version](https://img.shields.io/badge/Minecraft-1.15.1-blue.svg) -![Protocol](https://img.shields.io/badge/Protocol-575-blue.svg) +![Version](https://img.shields.io/badge/Minecraft-1.15.2-blue.svg) +![Protocol](https://img.shields.io/badge/Protocol-578-blue.svg) [![GoDoc](https://godoc.org/github.com/Tnze/go-mc?status.svg)](https://godoc.org/github.com/Tnze/go-mc) [![Go Report Card](https://goreportcard.com/badge/github.com/Tnze/go-mc)](https://goreportcard.com/report/github.com/Tnze/go-mc) [![Build Status](https://travis-ci.org/Tnze/go-mc.svg?branch=master)](https://travis-ci.org/Tnze/go-mc) diff --git a/bot/mcbot.go b/bot/mcbot.go index c1e5910..cdf7f47 100644 --- a/bot/mcbot.go +++ b/bot/mcbot.go @@ -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) {