From 4f1641f425bef19d486c81836001674fb734cd3d Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Mon, 14 Feb 2022 11:32:10 +0100 Subject: [PATCH] Add type byte to header --- rcon/battleye/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcon/battleye/client.py b/rcon/battleye/client.py index 5e33543..bb83c8b 100644 --- a/rcon/battleye/client.py +++ b/rcon/battleye/client.py @@ -44,9 +44,9 @@ class Client(BaseClient, socket_type=SOCK_DGRAM): """Receives a packet.""" return RESPONSE_TYPES[ (header := Header.from_bytes( - data := self._socket.recv(max_length)[:7] + data := self._socket.recv(max_length)[:8] )).type - ].from_bytes(header, data[7:]) + ].from_bytes(header, data[8:]) def receive(self, max_length: int = 4096) -> Response: """Receives a message."""