Hotfix: Fix uplinks allowing buying conditionally restricted items (#35334)

* Initial commit

* I just compressed the code

* Actually address review
This commit is contained in:
SlamBamActionman
2025-03-02 20:40:57 +01:00
committed by GitHub
parent 98cca7b0f8
commit 08cb26dbf0
2 changed files with 16 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ public sealed partial class StoreSystem
//condition checking because why not
if (listing.Conditions != null)
{
var args = new ListingConditionArgs(component.AccountOwner ?? buyer, uid, listing, EntityManager);
var args = new ListingConditionArgs(component.AccountOwner ?? GetBuyerMind(buyer), uid, listing, EntityManager);
var conditionsMet = listing.Conditions.All(condition => condition.Condition(args));
if (!conditionsMet)