Merge pull request #254 from hilburn/soul-fray-fix
Prevents removal of Soul Fray with milk
This commit is contained in:
commit
246b654e03
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue