propagate unwrapped func for stacked decorators

This commit is contained in:
əlemi 2022-01-19 02:27:05 +01:00
parent 83beb50a42
commit 657aa767c5

View file

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