This commit is contained in:
Bernhard Bonigl committed 2014-12-30 11:30:22 +01:00
commit 0d338eafef
1 file changed
+1 -1
@@ -86,7 +86,7 @@ public class PotionLauncher extends Item
@Override
public EnumAction getItemUseAction (ItemStack stack)
{
if (!stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Loaded"))
if (stack != null && stack.hasTagCompound() && !stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Loaded"))
return EnumAction.bow;
else
return EnumAction.none;