power change should now update alarm on alarmables

This commit is contained in:
vulppine
2022-08-22 15:03:22 -07:00
parent a5cf4f9578
commit f602ead768

View File

@@ -51,6 +51,14 @@ namespace Content.Server.Atmos.Monitor.Systems
{
Reset(uid, component);
}
else
{
TryUpdateAlert(
uid,
TryGetHighestAlert(uid, out var alarm) ? alarm.Value : AtmosMonitorAlarmType.Normal,
component,
false);
}
}
private void OnPacketRecv(EntityUid uid, AtmosAlarmableComponent component, DeviceNetworkPacketEvent args)