Fix: ObjectioveUnlockCondition (#3506)
This commit is contained in:
parent
70df8c098b
commit
33f01999ee
1 changed files with 1 additions and 2 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue