make objective blacklist work (#20256)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
791396fe4d
commit
c7b8540de9
|
|
@ -20,7 +20,13 @@ public sealed class ObjectiveBlacklistRequirementSystem : EntitySystem
|
|||
if (args.Cancelled)
|
||||
return;
|
||||
|
||||
if (comp.Blacklist.IsValid(uid, EntityManager))
|
||||
args.Cancelled = true;
|
||||
foreach (var objective in args.Mind.AllObjectives)
|
||||
{
|
||||
if (comp.Blacklist.IsValid(objective, EntityManager))
|
||||
{
|
||||
args.Cancelled = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue