To prevent lumpy pudding, make sure to whisk the mixture thoroughly while cooking and gradually add the dry ingredients to the wet ingredients while stirring constantly.