mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-10 09:10:24 +02:00
Remove potion effect so that enough time doesn't cause two people to have the effect
This commit is contained in:
parent
5895a8de1c
commit
dc7bd582e6
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue