From 33a55bf92ddfb8d06499c61c0bbb1e86366a5dfc Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Jun 2020 17:00:56 +0200 Subject: [PATCH] test --- def.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/def.go b/def.go index 71fb691..e055f52 100644 --- a/def.go +++ b/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.Packet) + err := binary.Write(buf, binary.LittleEndian, p) logErrorDebug(err, "binary.Write") return buf.Bytes() }