The last poster who wanted to argue with me about Fatima inferred that the "solution" was about stopping onanism.
Likely amongst other things, I'd venture to say.
The Blessed Virgin made mention of "sins of the flesh" and stated that many souls went to hell because of them. She also stated that wars are a punishment for sin. So it's reasonable to infer that lack of chastity has consequences beyond our own persons. Sodom and Gomorrah found that out.
Other apparitions have also mentioned the seriousness of sins against the sixth commandment which deals with the wider issue of sexual continence.