committed by
GitHub
parent
ea60a81fdf
commit
103bc19508
@@ -41,7 +41,7 @@ namespace Content.Server.StationEvents.Events
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
|
||||
foreach (var component in componentManager.EntityQuery<PowerReceiverComponent>(true))
|
||||
foreach (var component in componentManager.EntityQuery<ApcPowerReceiverComponent>(true))
|
||||
{
|
||||
component.PowerDisabled = true;
|
||||
_powered.Add(component.Owner);
|
||||
@@ -56,7 +56,7 @@ namespace Content.Server.StationEvents.Events
|
||||
{
|
||||
if (entity.Deleted) continue;
|
||||
|
||||
if (entity.TryGetComponent(out PowerReceiverComponent? powerReceiverComponent))
|
||||
if (entity.TryGetComponent(out ApcPowerReceiverComponent? powerReceiverComponent))
|
||||
{
|
||||
powerReceiverComponent.PowerDisabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user