Merge pull request #254 from hilburn/soul-fray-fix

Prevents removal of Soul Fray with milk
This commit is contained in:
WayofTime 2015-02-13 11:29:29 -05:00
commit 246b654e03

View file

@ -1,7 +1,11 @@
package WayofTime.alchemicalWizardry.common.potion;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import java.util.ArrayList;
public class PotionSoulFray extends Potion
{
public PotionSoulFray(int par1, boolean par2, int par3)
@ -15,4 +19,16 @@ public class PotionSoulFray extends Potion
super.setIconIndex(par1, par2);
return this;
}
@Override
public void performEffect(EntityLivingBase entityLivingBase, int level)
{
entityLivingBase.getActivePotionEffect(this).setCurativeItems(new ArrayList<ItemStack>());
}
@Override
public boolean isReady(int duration, int level)
{
return true;
}
}