This may be true. But your lawyer could have quashed the contraband based on lack of consent.
I know you already feel bad, but this is for future reference.
When you're on the street, you're on the cop's turf, but when you get into court, you're on the lawyer's turf. Make it easier on your lawyer. Insist on your rights. You may not win the first round, but you'll win the second one.