mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01: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
1 changed files with 1 additions and 0 deletions
|
@ -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