}
for (PotionEffect effect : potionEffects) {
Potion potion = Potion.potionTypes[effect.getPotionID()];
PotionEffect active = player.getActivePotionEffect(potion);
effect = new SmallPotionEffect(effect, active);
player.addPotionEffect(effect);
}
player.worldObj.playSoundAtEntity(player, "random.drink", 0.5F, 0.9F + player.worldObj.rand.nextFloat() * 0.1F);
if (--uses <= 0) setPotions(drinkingHelmet, null);