mojira.dev
MC-99779

Right-clicking creeper with flint and steel uses item in off-hand as well

The bug

When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.

How to reproduce

  1. Spawn a creeper

  2. Put flint and steel in your main-hand and another item with a right click action in your off-hand

  3. Right-click the creeper

  4. Note that the creeper was ignited but the item in your off-hand was used as well

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.

Linked issues

Comments 5

The name tag part of the original description is caused by this underlying bug.

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Cannot reproduce aince 19w37a.

Aaron Hill

(Unassigned)

Confirmed

(Unassigned)

flint_and_steel, interaction, main-hand, name_tag, off-hand, right-click

Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, ..., Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a

19w37a

Retrieved