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