Mind ecs (#14412)
This commit is contained in:
@@ -28,7 +28,7 @@ public sealed class BuyerAntagCondition : ListingCondition
|
||||
{
|
||||
var ent = args.EntityManager;
|
||||
|
||||
if (!ent.TryGetComponent<MindComponent>(args.Buyer, out var mind) || mind.Mind == null)
|
||||
if (!ent.TryGetComponent<MindContainerComponent>(args.Buyer, out var mind) || mind.Mind == null)
|
||||
return true;
|
||||
|
||||
if (Blacklist != null)
|
||||
|
||||
@@ -28,7 +28,7 @@ public sealed class BuyerJobCondition : ListingCondition
|
||||
{
|
||||
var ent = args.EntityManager;
|
||||
|
||||
if (!ent.TryGetComponent<MindComponent>(args.Buyer, out var mind) || mind.Mind == null)
|
||||
if (!ent.TryGetComponent<MindContainerComponent>(args.Buyer, out var mind) || mind.Mind == null)
|
||||
return true; //this is for things like surplus crate
|
||||
|
||||
if (Blacklist != null)
|
||||
|
||||
Reference in New Issue
Block a user