using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Power;
namespace Content.Server.Chemistry.EntitySystems;
///
public sealed class SolutionContainerMixerSystem : SharedSolutionContainerMixerSystem
{
///
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent(OnPowerChanged);
}
private void OnPowerChanged(Entity ent, ref PowerChangedEvent args)
{
if (!args.Powered)
StopMix(ent);
}
protected override bool HasPower(Entity entity)
{
return this.IsPowered(entity, EntityManager);
}
}