mojira.dev
MC-849

Eating a food item / drinking potion / curing zombie / feeding animal has a chance of also consuming a second food item / potion without any animation

The bug

Eating a food item has a chance of also consuming a second food item without any animation.

How to reproduce

  1. Start eating, this can be reproduced best with golden apples because they can be eaten regardless of hunger

  2. Stop eating right when you started to eat a second item (after less than a second)

  3. Wait some seconds

Code analysis

This bug seems to be caused as well by a SPacketSetSlot packet causing an item in use mismatch, therefor see this comment.

Linked issues

MC-897 Eating food sometimes consumes two Resolved MC-1042 Sometimes a friends Minecraft think he wants to eat more than he wants Resolved MC-1050 Automatic eating Resolved MC-2744 Food eating bug Resolved MC-7568 Extra consumption after eating Resolved

Attachments

Comments 135

Too vague. Please be more specific. Unable to replicate.

Eric Schwarzenbach

How is that description vague? It may be hard to replicate and require some unknown condition in order to occur, or even be "user error", but I think the description is perfectly clear: a single click to eat a food item causes consumption of two.

Please provide a meaningful summary and description with each ticket.

Eric, to be honest I had no idea what it meant until I read your comment. I think we want to set the bar a little higher than that; you should be able to identify an issue by the summary, and the description should be cohesive and thorough. MC-1 is a good example of how a ticket should look.

If the reporter or one of the other mods wants to fix the ticket up so it's complete, we can reopen it.

I've witnessed this problem on a large number of occasions, it isn't uncommon. There is not further information to give. I'm not kidding you.

SMP? SP? Happens in Adventure mode also? Did you check for 'ghost food items'? Server lag? Does it also happen in LAN mode? On Windows? OS X? Linux? If you were on a server, what OS did the server use? What version of Java? How much RAM was allocated to the server? It may seem unrelated, but it may help.
There is still more information you can give.
I am still unable to replicate this. I've tried it 32 times, using up my porkchop and running around to get my hunger down, and there was no missing food.

125 more comments

I can't seem to reproduce this bug in 1.14.2, has this been fixed?

Accidentally attacked an untamed wolf; tried to feed it rotten flesh to de-aggro. Received food poisoning a moment later.

Steps to Reproduce:

  • Find an untamed wolf (single-player; cheats off)

  • Carry Rotten Flesh

  • Attack to make aggressive

  • Feed wolf Rotten Flesh [confirm feed with floating hearts]

A tick later the player will receive food poisoning.

Reliability: 70-80%

  • Was able to immediately reproduce after disconnect & reconnect

  • Feeding immediately after using spawn egg also reproduced error

  • Error wasn't as reliable when:

    • wolf is lead away from spawn area

    • tied to post

    • aggressive towards prey instead of player

    • non-aggressive

 

This is still happening in 1.14.3.

1.14.4. Seems to only be visual though? Relog/Open a container refreshes inventory and item reappears again.

Edit: Oh wait a fix version was listed for a 1.15 snapshot nvm.

Louis John Cooke

migrated

Confirmed

(Unassigned)

animation, eating, food

Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02b, Minecraft 1.5, ..., Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3

Minecraft 15w31a, 19w35a

Retrieved