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:
@@ -43,7 +43,7 @@ namespace Content.Server.StationEvents
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
|
||||
foreach (var component in componentManager.EntityQuery<PowerReceiverComponent>())
|
||||
foreach (var component in componentManager.EntityQuery<PowerReceiverComponent>(true))
|
||||
{
|
||||
component.PowerDisabled = true;
|
||||
_powered.Add(component.Owner);
|
||||
|
||||
Reference in New Issue
Block a user