This commit is contained in:
shoopea 2020-06-14 17:00:56 +02:00
parent 746e85e20e
commit 33a55bf92d

2
def.go
View File

@ -59,7 +59,7 @@ type PacketAdminJoin struct {
func (p *PacketAdminJoin) Bytes() []byte { func (p *PacketAdminJoin) Bytes() []byte {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
p.PLength = uint16(binary.Size(p)) p.PLength = uint16(binary.Size(p))
err := binary.Write(buf, binary.LittleEndian, p.Packet) err := binary.Write(buf, binary.LittleEndian, p)
logErrorDebug(err, "binary.Write") logErrorDebug(err, "binary.Write")
return buf.Bytes() return buf.Bytes()
} }