Mojira Archive
MC-186909

Flint and steel / fire charge is used/consumed when right-clicking on an ignited creeper / charged creeper

The bug

Player can keep right-clicking on a creeper (with a flint and steel) even after the first time, even though the creeper is going to blow up anyway, losing durability for each hand swing.

How to reproduce

  1. Spawn a creeper or a charged creeper
  2. Go into survival mode (creative mode works too but it won't lower flint and steel's durability)
  3. Start right-clicking on a creeper with a flint and steel
    Player is still able to use flint and steel even after the first time while creeper blows up, making player use more durability than 1

Expected behavior would be that the player should only be able to right-click on a creeper once.

Code analysis and fix

Code analysis and fix by [Mod] Avoma can be found in this comment.