What do you do for habitual cravings?

Interesting how going to an event that I have been to in the past and I thought about how I used to have drinks. I don’t think about it much, this is an annual festival. I found that drinking water and having food helped my craving go away, just noticing how it came up. Has this happened to you? What do you do?