format repo with "gofumpt" tool
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
package basic
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
"unsafe"
|
||||
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
"github.com/Tnze/go-mc/nbt"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
@ -123,7 +124,7 @@ func (p *Player) handleLoginPacket(packet pk.Packet) error {
|
||||
if err != nil {
|
||||
return Error{err}
|
||||
}
|
||||
err = p.c.Conn.WritePacket(pk.Marshal( //PluginMessage packet
|
||||
err = p.c.Conn.WritePacket(pk.Marshal( // PluginMessage packet
|
||||
int32(packetid.ServerboundCustomPayload),
|
||||
pk.Identifier("minecraft:brand"),
|
||||
pk.String(p.Settings.Brand),
|
||||
@ -148,6 +149,7 @@ func (p *Player) handleLoginPacket(packet pk.Packet) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *Player) handleRespawnPacket(packet pk.Packet) error {
|
||||
var copyMeta bool
|
||||
err := packet.Scan(
|
||||
|
@ -2,12 +2,12 @@ package basic
|
||||
|
||||
// Settings of client
|
||||
type Settings struct {
|
||||
Locale string //地区
|
||||
ViewDistance int //视距
|
||||
ChatMode int //聊天模式
|
||||
ChatColors bool //聊天颜色
|
||||
DisplayedSkinParts uint8 //皮肤显示
|
||||
MainHand int //主手
|
||||
Locale string // 地区
|
||||
ViewDistance int // 视距
|
||||
ChatMode int // 聊天模式
|
||||
ChatColors bool // 聊天颜色
|
||||
DisplayedSkinParts uint8 // 皮肤显示
|
||||
MainHand int // 主手
|
||||
|
||||
// Enables filtering of text on signs and written book titles.
|
||||
// Currently, always false (i.e. the filtering is disabled)
|
||||
|
Reference in New Issue
Block a user