-
Bug
-
Resolution: Fixed
-
Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2
-
Confirmed
The bug
Some items act client-side always like they were successfully used even though they were not.
Affected items
Last updated for 1.11.2
- bed
- fire_charge
- spawn_egg
How to reproduce
- Try to use one of the items above at a place where they cannot be used
→ You will notice that your arm swings and if you have another item with right click ability in your offhand, it won't be used.
As of 1.11.2 this bug can be reproduced with all items above when trying to use them in Adventure mode.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The affected items implement the method net.minecraft.item.Item.onItemUse(EntityPlayer, World, BlockPos, EnumHand, EnumFacing, float, float, float) in a way that it always returns EnumActionResult.SUCCESS client-side.