From e642debd15ee61e010fae15f781ad9e693d1d092 Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 10 Dec 2021 13:38:10 +0100 Subject: [PATCH] Advancements packet is still not parseable... --- aiocraft/dispatcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aiocraft/dispatcher.py b/aiocraft/dispatcher.py index a644824..86f5c80 100644 --- a/aiocraft/dispatcher.py +++ b/aiocraft/dispatcher.py @@ -23,6 +23,8 @@ class InvalidState(Exception): class ConnectionError(Exception): pass +BROKEN_PACKETS = (77, ) # These packets are still not parseable due to missing data type + class Dispatcher: _is_server : bool # True when receiving packets from clients @@ -215,6 +217,8 @@ class Dispatcher: buffer = io.BytesIO(decompressed_data) packet_id = VarInt.read(buffer) + if packet_id in BROKEN_PACKETS: + continue # cheap fix, still need to implement NBT, Slot and EntityMetadata... cls = self._packet_type_from_registry(packet_id) self._logger.debug("Deserializing packet %s | %s", str(cls), cls._state) packet = cls.deserialize(self.proto, buffer)