From 657aa767c5049ab07346c1bbb3d896e207dcc878 Mon Sep 17 00:00:00 2001 From: alemidev Date: Wed, 19 Jan 2022 02:27:05 +0100 Subject: [PATCH] propagate unwrapped func for stacked decorators --- treepuncher/treepuncher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/treepuncher/treepuncher.py b/treepuncher/treepuncher.py index 3551de0..9697965 100644 --- a/treepuncher/treepuncher.py +++ b/treepuncher/treepuncher.py @@ -138,7 +138,8 @@ class Treepuncher(MinecraftClient): msg = ChatEvent(packet.message) if not msg_type or msg.type == msg_type: return await fun(msg) - return self.register(PacketChatMessage, process_chat_packet) + self.register(PacketChatMessage, process_chat_packet) + return fun return wrapper def on_death(self):