From 0f936794be2223384bac6deeb1b5de8ea27103ed Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 17 Dec 2021 14:09:32 +0100 Subject: [PATCH] old setCompression doesn't matter --- aiocraft/dispatcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aiocraft/dispatcher.py b/aiocraft/dispatcher.py index 6937b34..beef21a 100644 --- a/aiocraft/dispatcher.py +++ b/aiocraft/dispatcher.py @@ -100,11 +100,10 @@ class Dispatcher: self._host = host or self._host or "localhost" self._port = port or self._port or 25565 self._logger = LOGGER.getChild(f"on({self._host}:{self._port})") - self._packet_whitelist = set(packet_whitelist) or set() + self._packet_whitelist = set(packet_whitelist) if packet_whitelist else set() if self._packet_whitelist: self._packet_whitelist.add(minecraft_protocol.play.clientbound.PacketKeepAlive) self._packet_whitelist.add(minecraft_protocol.play.clientbound.PacketKickDisconnect) - self._packet_whitelist.add(minecraft_protocol.play.clientbound.PacketSetCompression) self.encryption = False self.compression = None