Move some packets processing to map context

Port From (https://github.com/TrinityCore/TrinityCore/commit/2ea8f5e6fced094f28c45ac84123c85477122567)
This commit is contained in:
hondacrx
2021-04-18 14:06:00 -04:00
parent 63f0f919e2
commit b1ea7212f3
21 changed files with 98 additions and 98 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ namespace Game
SendPacket(new VoidTransferResult(result));
}
[WorldPacketHandler(ClientOpcodes.UnlockVoidStorage)]
[WorldPacketHandler(ClientOpcodes.UnlockVoidStorage, Processing = PacketProcessing.Inplace)]
void HandleVoidStorageUnlock(UnlockVoidStorage unlockVoidStorage)
{
Creature unit = GetPlayer().GetNPCIfCanInteractWith(unlockVoidStorage.Npc, NPCFlags.VaultKeeper, NPCFlags2.None);
@@ -50,7 +50,7 @@ namespace Game
GetPlayer().UnlockVoidStorage();
}
[WorldPacketHandler(ClientOpcodes.QueryVoidStorage)]
[WorldPacketHandler(ClientOpcodes.QueryVoidStorage, Processing = PacketProcessing.Inplace)]
void HandleVoidStorageQuery(QueryVoidStorage queryVoidStorage)
{
Player player = GetPlayer();
@@ -208,7 +208,7 @@ namespace Game
SendVoidStorageTransferResult(VoidTransferError.Ok);
}
[WorldPacketHandler(ClientOpcodes.SwapVoidItem)]
[WorldPacketHandler(ClientOpcodes.SwapVoidItem, Processing = PacketProcessing.Inplace)]
void HandleVoidSwapItem(SwapVoidItem swapVoidItem)
{
Player player = GetPlayer();