The desire to gain wealth is different from being worldly. The truth is there are worldly people who are not even rich and there are rich people who are really very unworldly. There is nothing wrong with wishing to be wealthy, what is wrong is how you handle wealth. In Buddhism, one is safeguarded from being too greedy by its basic teaching of karma. Buddhist people knows that what they do now will have repercussions either in the immediate future or in their next life.