Fix more component-dependency purge issues (#6178)
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Content.Server.Doors.Components
|
||||
|
||||
public bool IsPowered()
|
||||
{
|
||||
return _entityManager.TryGetComponent<ApcPowerReceiverComponent>(Owner, out var receiverComponent) && receiverComponent.Powered;
|
||||
return !_entityManager.TryGetComponent<ApcPowerReceiverComponent>(Owner, out var receiverComponent) || receiverComponent.Powered;
|
||||
}
|
||||
|
||||
public void UpdateBoltLightStatus()
|
||||
|
||||
Reference in New Issue
Block a user