The fourth of the Yamas is Brahmacharya, or Nonexcess. Moderation in all our actions.
Brahmacharya does roughly translate as abstinence, and some people take this to be celibacy, however many prefer to think of this in terms of nonexcess. So basically, don’t have more than you need, don’t be excessive. Still partake in enjoyable things, whatever they may be for you….just try not to become reliant on it.