Worms in buds last year

Last year we had little worms in our buds. We are growing outdoors again this year.
I would like to prevent these pests from getting on my plants.
I was thinking of using some sort of netting to prevent the moths from laying their eggs on my plants. (I think that is were these worms come from)
Is this a good solution and if so, is one kind of netting better then another?
If not, what should I do to prevent worms?
Thanks in advance.

Not sure I’ve seen anything like that. If you are able to identify what kind of worms they were I could probably help you find solution though.

After reading a little more, they are caterpillars. Really little green ones.