修改错误的版本号
This commit is contained in:
@ -24,8 +24,8 @@ import (
|
||||
// return int(math.Floor(p.X)), int(math.Floor(p.Y)), int(math.Floor(p.Z))
|
||||
// }
|
||||
|
||||
// HandleGame recive server packet and response them correctly.
|
||||
// Note that HandleGame will block if you don't recive from Events.
|
||||
// HandleGame receive server packet and response them correctly.
|
||||
// Note that HandleGame will block if you don't receive from Events.
|
||||
func (c *Client) HandleGame() error {
|
||||
for {
|
||||
select {
|
||||
@ -212,7 +212,7 @@ func handleSetSlotPacket(c *Client, p pk.Packet) error {
|
||||
}
|
||||
|
||||
// func handleMultiBlockChangePacket(c *Client, p pk.Packet) error {
|
||||
// if !c.settings.ReciveMap {
|
||||
// if !c.settings.ReceiveMap {
|
||||
// return nil
|
||||
// }
|
||||
|
||||
@ -253,7 +253,7 @@ func handleSetSlotPacket(c *Client, p pk.Packet) error {
|
||||
// }
|
||||
|
||||
// func handleBlockChangePacket(c *Client, p pk.Packet) error {
|
||||
// if !c.settings.ReciveMap {
|
||||
// if !c.settings.ReceiveMap {
|
||||
// return nil
|
||||
// }
|
||||
// var pos pk.Position
|
||||
@ -435,7 +435,7 @@ func handleHeldItemPacket(c *Client, p pk.Packet) error {
|
||||
}
|
||||
|
||||
func handleChunkDataPacket(c *Client, p pk.Packet) error {
|
||||
if !c.settings.ReciveMap {
|
||||
if !c.settings.ReceiveMap {
|
||||
return nil
|
||||
}
|
||||
var (
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
// ProtocolVersion , the protocol version number of minecraft net protocol
|
||||
const ProtocolVersion = 497
|
||||
const ProtocolVersion = 498
|
||||
|
||||
// PingAndList check server status and list online player.
|
||||
// Returns a JSON data with server status, and the delay.
|
||||
|
@ -8,7 +8,7 @@ type Settings struct {
|
||||
ChatColors bool //聊天颜色
|
||||
DisplayedSkinParts uint8 //皮肤显示
|
||||
MainHand int //主手
|
||||
ReciveMap bool //接收地图数据
|
||||
ReceiveMap bool //接收地图数据
|
||||
}
|
||||
|
||||
/*
|
||||
@ -32,5 +32,5 @@ var DefaultSettings = Settings{
|
||||
ChatMode: 0,
|
||||
DisplayedSkinParts: Jacket | LeftSleeve | RightSleeve | LeftPantsLeg | RightPantsLeg | Hat,
|
||||
MainHand: 1,
|
||||
ReciveMap: true,
|
||||
ReceiveMap: true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user