From 58ab0e03785b9f4d19e18b46b17a19c431beb0c3 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 16 Feb 2023 22:07:52 +0100 Subject: [PATCH] fix: don't lock proto version... --- src/treepuncher/scaffold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treepuncher/scaffold.py b/src/treepuncher/scaffold.py index f929472..df6bbfd 100644 --- a/src/treepuncher/scaffold.py +++ b/src/treepuncher/scaffold.py @@ -51,7 +51,7 @@ class Scaffold( self.dispatcher.set_compression(packet.threshold) elif isinstance(packet, PacketKeepAlive): if self.cfg.getboolean("send_keep_alive", fallback=True): - keep_alive_packet = PacketKeepAliveResponse(340, keepAliveId=packet.keepAliveId) + keep_alive_packet = PacketKeepAliveResponse(self.dispatcher._proto, keepAliveId=packet.keepAliveId) await self.dispatcher.write(keep_alive_packet) elif isinstance(packet, PacketKickDisconnect): self.logger.error("Kicked while in game : %s", helpers.parse_chat(packet.reason))