This commit is contained in:
shoopea 2020-06-14 16:53:45 +02:00
parent df84728460
commit 6827f36e6a

3
def.go
View File

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