From cfe356cf5b02c52a5fef06b0474f2e22796b2e9e Mon Sep 17 00:00:00 2001 From: Yehonal Date: Wed, 12 May 2021 08:35:46 +0200 Subject: [PATCH] fix: wrong packet value in OnPacketReceiveOne --- PacketHooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PacketHooks.cpp b/PacketHooks.cpp index 4d086f6..d11f3fa 100644 --- a/PacketHooks.cpp +++ b/PacketHooks.cpp @@ -116,7 +116,7 @@ void Eluna::OnPacketReceiveAny(Player* player, WorldPacket& packet, bool& result void Eluna::OnPacketReceiveOne(Player* player, WorldPacket& packet, bool& result) { - START_HOOK_PACKET(PACKET_EVENT_ON_PACKET_SEND, packet.GetOpcode()); + START_HOOK_PACKET(PACKET_EVENT_ON_PACKET_RECEIVE, packet.GetOpcode()); Push(new WorldPacket(packet)); Push(player); int n = SetupStack(PacketEventBindings, key, 2);