Mending should not work on potion flasks (#1332)
This commit is contained in:
parent
d1e77acc73
commit
86f54886c5
|
@ -69,6 +69,11 @@ public class ItemPotionFlask extends Item implements IMeshProvider {
|
||||||
return EnumAction.DRINK;
|
return EnumAction.DRINK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDamaged(ItemStack stack) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
||||||
ItemStack stack = player.getHeldItem(hand);
|
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()));
|
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)
|
@SideOnly(Side.CLIENT)
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue