Carrot on a stick acts client-side always as if it was not successfully used
The bug
When using a carrot on a stick while riding a pig the carrot on a stick always acts as if it was not successfully used client-side. This means that if you hold an item in your offhand, that item will be used as well.
How to reproduce
- Spawn a pig and give it a saddle
- Mount it, put a carrot on a stick in your mainhand and another item with right click ability in your offhand, for example a fishing rod
- Right click with the carrot on a stick
→ You will see that the fishing rod was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.item.ItemCarrotOnAStick.onItemRightClick(World, EntityPlayer, EnumHand) always returns EnumActionResult.PASS client-side.
2017-01-30, 12:10 AM
2024-12-07, 06:07 PM
11
6
carrot_on_a_stick, client-side, pig, pig-riding, right-click, use-item
-