This commit is contained in:
shoopea 2020-06-14 16:46:10 +02:00
parent 89bf185535
commit fcec3f1189

2
def.go
View File

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