From f10189efad6b8635c54e9f4c6c977d8e40c681a7 Mon Sep 17 00:00:00 2001 From: hilburn Date: Fri, 13 Feb 2015 02:01:11 +0000 Subject: [PATCH] Prevents removal of Soul Fray with milk Yes it's stupid, Potions are stupid --- .../common/potion/PotionSoulFray.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/potion/PotionSoulFray.java b/src/main/java/WayofTime/alchemicalWizardry/common/potion/PotionSoulFray.java index 78febaff..304b0307 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/potion/PotionSoulFray.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/potion/PotionSoulFray.java @@ -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()); + } + + @Override + public boolean isReady(int duration, int level) + { + return true; + } }