Details
-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: Minecraft 1.11.2, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w04b, 1.15.2, 1.16.2, 1.16.4, 20w48a
-
Fix Version/s: None
-
Confirmation Status:Confirmed
-
Category:(Unassigned)
Description
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.