public void Handle(WorldClient client, TradeAddItemPacket packet) { var ok = _tradeManager.TryAddItem(packet.Bag, packet.Slot, packet.Quantity, packet.SlotInTradeWindow, out var tradeItem); if (ok) { _packetFactory.SendAddedItemToTrade(client, packet.Bag, packet.Slot, packet.Quantity, packet.SlotInTradeWindow); _packetFactory.SendAddedItemToTrade(_gameWorld.Players[_tradeManager.PartnerId].GameSession.Client, tradeItem, packet.Quantity, packet.SlotInTradeWindow); } }