Remove potion effect so that enough time doesn't cause two people to have the effect

This commit is contained in:
Ellpeck 2016-06-06 21:29:21 +02:00
parent 5895a8de1c
commit dc7bd582e6

View file

@ -135,6 +135,7 @@ public class ItemPotionRing extends ItemBase implements IColorProvidingItem, IDi
if(entity.isPotionActive(potion)){
//Sometimes make the effect switch to someone else
if(Util.RANDOM.nextInt(100) <= 0){
entity.removePotionEffect(potion);
break;
}
else{