test
This commit is contained in:
parent
6827f36e6a
commit
6f242fe712
2
def.go
2
def.go
@ -59,7 +59,7 @@ type PacketAdminJoin struct {
|
||||
func (p *PacketAdminJoin) Bytes() []byte {
|
||||
buf := new(bytes.Buffer)
|
||||
p.PLength = uint16(binary.Size(p))
|
||||
err = binary.Write(buf, binary.LittleEndian, p)
|
||||
err := binary.Write(buf, binary.LittleEndian, p)
|
||||
logErrorDebug(err, "binary.Write")
|
||||
return buf.Bytes()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user