-
Bug
-
Resolution: Fixed
-
Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w02a, Minecraft 18w05a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a
-
Confirmed
-
(Unassigned)
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
- Spawn a creeper
- Put flint and steel in your main-hand and another item with a right click action in your off-hand
- Right-click the creeper
- 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.