private void OnInteractUsing(EntityUid uid, MatchboxComponent component, InteractUsingEvent args) { if (!args.Handled && EntityManager.TryGetComponent <MatchstickComponent?>(args.Used, out var matchstick) && matchstick.CurrentState == SmokableState.Unlit) { Get <MatchstickSystem>().Ignite(matchstick, args.User); args.Handled = true; } }
private void OnInteractUsing(EntityUid uid, MatchboxComponent component, InteractUsingEvent args) { if (!args.Handled && args.Used.TryGetComponent <MatchstickComponent>(out var matchstick) && matchstick.CurrentState == SharedBurningStates.Unlit) { Get <MatchstickSystem>().Ignite(matchstick, args.User); args.Handled = true; } }