old setCompression doesn't matter

This commit is contained in:
əlemi 2021-12-17 14:09:32 +01:00
parent 4ca65f84d5
commit 0f936794be

View file

@ -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