mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Added the Brew of Absolution.
This commit is contained in:
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())
|
||||
|
||||
Reference in new issue
Block a user