Added the Brew of Absolution.

This commit is contained in:
Lizbeth Rika committed 2015-07-25 18:46:27 +01:00
1 parent 85447fb6c7
commit 6a95defc18
11 files changed
+59 -5

No files matched your search

@@ -79,7 +79,10 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
if(!world.isRemote) {
for(PotionEffect effect : getBrew(stack).getPotionEffects(stack)) {
PotionEffect newEffect = new PotionEffect(effect.getPotionID(), effect.getDuration(), effect.getAmplifier(), true);
player.addPotionEffect(newEffect);
Potion potion = Potion.potionTypes[newEffect.getPotionID()];
if(potion.isInstant())
potion.affectEntity(player, player, newEffect.getAmplifier(), 1F);
else player.addPotionEffect(newEffect);
}
if(world.rand.nextBoolean())