Mojira Archive
MC-105591

Flint and Steel loses durability and fire charge is used up even if no fire was placed

The bug

When you click with flint and steel at blocks where no fire can be placed because the position is occupied by another block, the flint and steel item is still damaged and acts like it was successfully used, preventing an off-hand item from being used.

How to reproduce

  1. Place a fence on top of a full block
  2. Try right clicking with the flint and steel item at the top of the full block
    → The item is damaged but no fire block was placed

The reason

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The reason for this is that the method net.minecraft.item.ItemFlintAndSteel.onItemUse(ItemStack, EntityPlayer, World, BlockPos, EnumHand, EnumFacing, float, float, float) always damages the item even if no fire block was placed.