Don't drain the pineapple, it's the juice from the can that turns the dry pudding mix into pudding. If you've accidentally drained it, add some water (or pineapple juice if you have it), according to the pudding mix directions.