Prevents removal of Soul Fray with milk
Yes it's stupid, Potions are stupid
This commit is contained in:
parent
aa33b6b8ff
commit
f10189efad
1 changed files with 16 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
||||||
package WayofTime.alchemicalWizardry.common.potion;
|
package WayofTime.alchemicalWizardry.common.potion;
|
||||||
|
|
||||||
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class PotionSoulFray extends Potion
|
public class PotionSoulFray extends Potion
|
||||||
{
|
{
|
||||||
public PotionSoulFray(int par1, boolean par2, int par3)
|
public PotionSoulFray(int par1, boolean par2, int par3)
|
||||||
|
@ -15,4 +19,16 @@ public class PotionSoulFray extends Potion
|
||||||
super.setIconIndex(par1, par2);
|
super.setIconIndex(par1, par2);
|
||||||
return this;
|
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…
Add table
Add a link
Reference in a new issue