mojira.dev
MC-90202

Client can always use carrot on a stick, ignoring pig's food state

The bug

The client can always use the carrot on a stick even if the pig cannot eat more from the carrot. The condition for the client to use a carrot on a stick is that the durability after the use has to be >= 0. However the server only allows the use of a carrot on a stick if the pig can eat again.

How to reproduce

  1. Take a carrot on a stick and ride a pig

  2. Hold right-click

  3. Open your inventory and move the carrot on a stick

The damage should update and show the correct value

Linked issues

Attachments

Comments 3

Confirmed for 15w43c.

Confirmed for 15w44a.

Appears to be fixed for 16w06a (or maybe ealier)

marcono1234

(Unassigned)

Community Consensus

carrot-on-a-stick, carrotandstick, client, pig

Minecraft 15w41b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w46a, Minecraft 15w50a, Minecraft 15w51b

Minecraft 16w06a

Retrieved