Prevents removal of Soul Fray with milk

Yes it's stupid, Potions are stupid
This commit is contained in:
hilburn 2015-02-13 02:01:11 +00:00
parent aa33b6b8ff
commit f10189efad

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;
}
}