Fix: ObjectioveUnlockCondition (#3506)

This commit is contained in:
Daniel 2025-12-25 19:23:56 +01:00 committed by GitHub
parent 70df8c098b
commit 33f01999ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,7 @@ public sealed partial class ObjectiveUnlockCondition : ListingCondition
{
public override bool Condition(ListingConditionArgs args)
{
var minds = args.EntityManager.System<SharedMindSystem>();
if (!minds.TryGetMind(args.Buyer, out _, out var mind))
if (!args.EntityManager.TryGetComponent(args.Buyer, out MindComponent? mind))
return false;
var unlocker = args.EntityManager.System<StoreUnlockerSystem>();