Mending should not work on potion flasks (#1332)

This commit is contained in:
Nicholas Ignoffo 2018-06-26 16:53:16 -07:00
parent d1e77acc73
commit 86f54886c5

View file

@ -69,6 +69,11 @@ public class ItemPotionFlask extends Item implements IMeshProvider {
return EnumAction.DRINK;
}
@Override
public boolean isDamaged(ItemStack stack) {
return false;
}
@Override
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
ItemStack stack = player.getHeldItem(hand);
@ -108,16 +113,6 @@ public class ItemPotionFlask extends Item implements IMeshProvider {
tooltip.add(TextHelper.localizeEffect("tooltip.bloodmagic.potion.uses", stack.getMaxDamage() - stack.getItemDamage()));
}
// @Override
// @SideOnly(Side.CLIENT)
// public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)
// {
// for (PotionType potiontype : PotionType.REGISTRY)
// {
// subItems.add(PotionUtils.addPotionToItemStack(new ItemStack(itemIn), potiontype));
// }
// }
@SideOnly(Side.CLIENT)
@Override