Thank you, that's exactly what I thought. It turns out, the problem was with an unnecessary variable in my method... Like really dumb mistake. But, thanks! This really helped!
Just in case anyone who stumbles upon this wants the code. For 1.7
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
{
if(player.getCurrentArmor(3) != null){
ItemStack helmet = player.getCurrentArmor(3);
//3 is for helmet
if(helmet.getItem() == ModId.ArmorPiece){
//player.addPotionEffect(new PotionEffect(Potion.regeneration.getId(), 50, 0));
if(!player.isPotionActive(Potion.regeneration.getId()))
player.addPotionEffect(new PotionEffect(Potion.regeneration.getId(), 50, 0));
}
Thank you so much!
Edit: Is there anyway I can have the timer simply say 0:00 all the time?