Pausing content (#3061)

* Change EntityQuery to not retrieve paused by default

* GetAllComponents

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2021-02-04 00:20:48 +11:00
committed by GitHub
parent c40ac26ced
commit 684ec60be6
65 changed files with 69 additions and 71 deletions

View File

@@ -17,7 +17,7 @@ namespace Content.Server.Objectives.Conditions
public override IObjectiveCondition GetAssigned(Mind mind)
{
var entityMgr = IoCManager.Resolve<IEntityManager>();
var allHumans = entityMgr.ComponentManager.EntityQuery<MindComponent>().Where(mc =>
var allHumans = entityMgr.ComponentManager.EntityQuery<MindComponent>(true).Where(mc =>
{
var entity = mc.Mind?.OwnedEntity;
return (entity?.GetComponentOrNull<IMobStateComponent>()?.IsAlive() ?? false) && mc.Mind != mind;