This commit is contained in:
shoopea
2020-06-15 14:28:42 +02:00
parent c027fd458b
commit eb39d757f4
2 changed files with 28 additions and 0 deletions

View File

@@ -240,3 +240,11 @@ func (p *PacketAdminServerClientError) Read(b []byte) {
c, _ := r.ReadByte()
p.ErrorID = uint8(c)
}
func (p *PacketAdminServerClientQuit) Read(b []byte) {
r := bufio.NewReader(bytes.NewReader(b))
r.Discard(3)
bs := make([]byte, 4)
_, _ = r.Read(bs)
p.ClientID = binary.LittleEndian.Uint32(bs[0:])
}