Files
crystall-punk-14/Content.Server/Chemistry/EntitySystems/ChemistrySystem.ChemMaster.cs

18 lines
500 B
C#
Raw Normal View History

2022-03-29 03:58:51 +11:00
using Content.Server.Chemistry.Components;
using Content.Server.Power.Components;
namespace Content.Server.Chemistry.EntitySystems;
public sealed partial class ChemistrySystem
{
private void InitializeChemMaster()
{
SubscribeLocalEvent<ChemMasterComponent, PowerChangedEvent>(OnChemMasterPowerChange);
}
private static void OnChemMasterPowerChange(EntityUid uid, ChemMasterComponent component, PowerChangedEvent args)
{
component.UpdateUserInterface();
}
}