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.

Related issues

MC-897 Eating food sometimes consumes two MC-1042 Sometimes a friends Minecraft think he wants to eat more than he wants MC-1050 Automatic eating MC-2744 Food eating bug MC-7568 Extra consumption after eating MC-7834 Eating occasionally won't stop MC-8461 eating 2 eatable items when eating one MC-9526 Auto consuming food MC-10342 Potion Drinking Glitch MC-15743 Golden Apples and food randomly consumed twice. MC-28317 Two golden apple eating when eating one golden apple MC-30569 Keep eating food even after walking/sprinting MC-31146 Eating after sprintjumping triggers two times MC-35194 Burping Glitch MC-36384 Eating one bread consumes two MC-52521 Golden Apples double using. MC-53830 Automatically eating more food than desired MC-60726 Curing a zombie villager - Unexpected side effect: additional apple consumed by player MC-98225 Food MC-100751 Bug with food MC-102820 When curing a Zombie Villager with a golden apple, a second golden apple will be consumed by the player involuntarily if there is another golden apple in the stack MC-103321 Feeding Dogs Rotten Flesh sometimes gives Hunger MC-103560 The Double eating bug MC-105187 The food disappears when I click in the bed. MC-105508 Double Food Consume No Animation MC-107751 Eating Bug MC-110030 Losing golden apples by curing zombie villagers MC-112307 Food MC-113022 Eats after cancelling eating animation. MC-117469 Food is consumed by both the player and the wolf when feeding a wolf MC-117680 Feeding a zombie villager a Golden Apple also causes the player to consume one MC-118605 When feeding tame wolf rotting flesh while it is at full health, player occasionally gets food poisoning MC-122679 When a hungry player feeds a hungry dog the dog and the player receive hunger points MC-127199 Breeding wolves causes player to consume meat in hand MC-133887 Feeding dog also makes player eat instantly if player is not full MC-134252 Eating food sometimes results in multiples being eaten MC-135061 Ghost potions MC-135196 Villager Curing Bug MC-145564 Drinking Potions then switching to the next while still drinking current one will drink both potions but only keep one effect. MC-145924 Feeding a fox a sweetberry causes player to eat a sweetberry a few second later MC-148585 two pieces of food are automatically consumed instead of one MC-150137 Small bug where after using food item on an animal, you'll suddenly eat one of the said item without animation or cancelling. MC-150539 After eating a food, another will automatically be eaten without pressing any button. MC-153978 Eating can be triggered twice MC-156447 game uses food item twice MC-156926 Double eating bug MC-158691 drinking animation bug

Attachments

Comments

migrated
[media][media]
migrated

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

migrated

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.

migrated

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.

migrated

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.

migrated

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.

migrated

i try to help explaning this, because i first didn't think of it as a bug when it happened to me. and i want this ticket to be reopened 🙂

when you eat there is possbility to consume two instead of one item. it occurs to me with any fooditem i tried (cooked potato, cooked chicken, steak). it seems to occour every 32 items, but not EVERY, just about. first i thought it's because i klicked the mousbutton to long, but that i not it. i noticed that you cannot see the second item is actually eaten. that shows me, that IS abug, not intended behavior.

to replicate this you have to eat. a lot. it happened to me alot but i never found a clue that there is a symptom or thing to happen, that this bug happens. but, of course, you have to eat items which not fill the food-bar to the end, there must be a bit hunger left.

so, i hope now everyone understands. if not, sorry, i try to write proper english but it's not my mothertoung.

migrated

@ Mods: Please notice that you have marked all similar issues as "resolved", "duplicate" except MC-849 which is also not considered open as you marked it as "resolved" and "incomplete". Well if MC-849 is incomplete how did you come to the conclusion that MC-897 and consequently MC-1042 and MC-1050 are duplicates of MC-849? And if MC-897 MC-1042 and MC-1050 are duplicates why would you close all of them since MC-849 isn't open or complete? Or why would you keep MC-849 closed as "incomplete" and practically put this bug aside giving it no change to be noticed by the Mojang team and be fixed? It is already confirmed by many users and it is very easily reproduced. What else should be done on our side to have this issue reported, open and waiting in line to be fixed?

kumasasa

Keep calm... We're no bots, just humans...

migrated

I am calm. It's just that Raphael at MC-897 kindly asked at least one of these issues to be left open but it seemed as if he was ignored.

migrated

We can't be everywhere all the time. Thanks for bringing this to our attention.

migrated

To reproduce this bug easily, eat 2 items in a row without releasing the right mouse button in between. Try to release it precisely at the end of the consumption of the second item. It is highly likely that the bug will occur this way, which means that the player will eat a third food item without the animation, without the slow movement but only with the sound effect of eating.

migrated

Marios, I originally closed this as incomplete because it was pretty low quality and I didn't want a bunch of tickets linked to something that was difficult to understand (and there were plenty of duplicates, so I just used MC-897). It looks like other mods fixed it up and linked the other tickets to it, which is fine. Someone probably just forgot to reopen it afterwards, or everyone was thinking someone else would reopen it.

In the future, if you see something that's not right, just politely let us know, it's probably a simple mistake... also, if you see tickets that have been dismissed by moderators because of low quality or incomplete information, but you think there's a problem that needs to be addressed, feel free to open a nice, thorough, descriptive ticket for the same issue, and leave a note regarding the other ticket in a comment. That doesn't really apply here since there were so many duplicates anyway, but you get the idea...

migrated

I think I've been a little bit harsh back then. My apologies to all mods.

migrated

I've been testing the snapshots for a while and this has been happening ever since the client/server merger. This is especially bad with Golden Apples since you can always eat another one, so it'll make you even if the first one fully restored your hunger.

migrated

This happens to me as well. I've been able to do it pretty reliably by only consuming one food item, and releasing right-click slightly after the entire consumption process. For example, if eating takes 2 seconds, holding right-click for about 2.25 seconds will cause it. Right-clicking once more after releasing right-click seems to guarantee this doesn't happen. Also switching the item in your hand seems to guarantee it doesn't happen as well.

Client: MC 1.4.6 SMP on Win7 64-bit, Java 7u9 64-bit
Server: MC 1.4.6 on Server 2008 SP2 64-bit, Java 6u27 64-bit, 1024MB allocated, ~14% used, ~2-6% CPU usage

No server lag or other performance oddities noticed.

Edit: I think moving might also cause this to not happen? When trying to replicate this, make sure to stand still and not press anything else after releasing right-click. I've noticed that if you do it right, the animation of bringing the food to your mouth (the second time) starts to play for a brief instant but immediately stops. Then the food is consumed later at the time when the second animation would have been complete.

Hope that helps.

migrated

I've also had this problem very often while playing survival. This bug has been here probably since 1.3

Like other users say, this usually happens when moving. Also, the shank level mustn't be full after the first food item is consumed, and there should be enough shanks left so that the second item fills up the hunger bar.

There doesn't seem to be a lag problem.

I will try to post a video after Christmas performing the bug, if no mods can duplicate this.

migrated

Sadly, there is no sound.

The first bread is eaten, and the right mouse button is let go. The sound of chewing, followed by a burp is as usual.

A second bread is eaten without the animation (and without pressing the right mouse button). The only sound made is a burp after the second bread is done (no chewing sound).

migrated

Happens all the time on Mac. I tried this on Windows but it is MUCH rarer.

migrated

Agreed Xavier. Was trying this on my Windows 7 laptop and didn't get any results. I had problems in the past, but rarely.

When attempting on my mac, I didn't get any results on my first run, but playing on my normal survival map, I got results that I didn't even record. It happened VERY often.

It could possibly be the mouse (but I doubt it because there is no animation on the second food item). I use the old apple mouse that has a button 3, but my MagicMouse has the same problem.

migrated

It seems easier to do with a normal mouse; I get it less often on my MacBook's trackpad.

migrated

Though the mouse may be a possibility, I doubt it because of the lack of animation and sound on the second consumed food. I have no idea what provoked this change in the 1.3 era. Either way, this bug is quite annoying when playing survival.

migrated

I notice this happens most of the time when you eat a food item and it did not completely restore your health. then the avatar eats another without animation but plays a sound when your avatar finishes eating. IF you don't hold the eat button after you eat the first bit of food and don't switch the selected food you ate with. Defiantly not mouse problem

migrated

You are right. The mouse is not the problem.

Still something I'd like fixed by the next update. You will often run into this bug playing survival, so it definitely affects gameplay.

migrated

If you want to reproduce it more easily, use watermelon. It doesn't fill up your food bar as fast, so he still has room for more. He can even eat the extra piece while sprinting, It's really annoying when it happens with something like cooked meat, and you've eaten to 1/2 or 1 food down, then you eat another whole piece. Does Steve have a eating disorder? He just can't seem to stop eating unless I take it away from him...

migrated

I too can reproduce this bug quite easily, still, in 1.4.7. Here is an unedited video on youtube which demonstrates the bug happening within 90 seconds of the title screen. Enjoy! http://youtu.be/cr_RJikpeFE

migrated

It is still (again?) happening in 1.5. Please fix!

migrated

Happens in 1.5.1 too.

migrated

Can confirm it is in 1.5.1

migrated

Can confirm this is also in 1.5.2 and all the current latest snapshots, this seems to just be getting ignored. Seems the operation for some reason it getting run the second time. I have be messing around with this with forge to mod the game, I have found out that if I reduce the time it takes to eat an item of food to nothing, so it gets consumed instantly, no eating animation, then this issue NEVER happens. So the issues seems to be to do with holding the right mouse button down continues to try and run the code even though the food isn't eaten, and once it has it has built up and then runs it twice. What I don't understand is why it isn't every time. Also to stop this happening if you eat the food item and then instantly change to a different item or empty slot in the hot bar it will not EVER run twice.

Very strange and random bug, hope for it to be getting fixed soon and that my information may of help'd.

migrated

How to reproduce:
1-Have 5 hearts of hunger not replenished.
2-Eat a meat item.
3-Profit??

migrated

Daniel, it would be of great benefit, if you actually understand the problem, before you comment on it.

migrated

Daniel probably does. I also think that this bug is more likely to occur if held consumable replenishes alot (e.g. baked pork, steak) but leaves 1-2 points left to regen - and less likely if you try to eat something like cookies being barely alive.

migrated

There is no way to reproduce a bug that on appears inconsistently. The directions in the post are inferior to the description in the original report. There is no way to profit from the bug. Food items can only be wasted.

That is a lot to get wrong in 3 sentences that barely average four words each.

migrated

@Lasse I know there's no profit from the bug. I mean profit that you can reproduce the bug!

migrated

Maybe you do, but ambiguity is not a virtue, and is discouraged in the instructions on how to write bug reports. And what is the point of writing a "How to reproduce", when the original report already contains a superior description? I think it's great if you want to contribute. This bug really irks me. But please be constructive. Don't post smart comments for the fun of it, or just because you can. It is not helpful in any way. It's just spam. If you are confused about what kind of standards you should try to live up to, then read the guides on this site.

migrated

Confirmed in 13w22a. I also found that if i open a menu, whether its a chest, furnace, or inventory immediately after eating and I have some hunger left, I consume an extra piece of food.

migrated

This has been an issue since 1.4.7, maybe earlier. Can be seen if you watch the UHC Minecrack Youtube channels. They play on a 1.4.7 server durning the UHC sessions. Several times a player will have 2 golden apples, they will eat one, as soon as they finish 1 apple a louder "munch" sound can be heard Immediately after and both apples are eaten (the louder munch sound is like 2 instances on top of each other). they have had to resort to keeping the apple they are going to eat seperate from the stack of apples just to make sure they don't waste food.

migrated

Confirmed for all versions until 13w25b

migrated

Video explaining how to reproduce it: http://youtu.be/SRWUra8PvVo

migrated

Affects 1.6.1

migrated

Affects 1.6.2

migrated

Affects 13w37b. Effect happens in 13w37b about 90% of the time when eating after sprintjumping.

migrated

Confirm with latest snapshot 13w38c it happens very often. I already consider this as a feature: the character is so hungry that he can't stop eating until fully saturated...

Jeuv

Still in 13w39b

Jeuv

Still in 13w42b.

Jeuv

Still in 13w43a.

Jeuv

How to reproduce nearly 100% of the time:
-Have at least more hunger than the item you are about to consume restores.
-Eat the item and stop holding right click right when you are done eating the first item. (So the second eating animation doesn't start)
-Watch steve eat a second item without any animation.

Ezekiel

Confirmed this seems to work.

migrated

I can confirm this happens, haven't tested to see what circumstances causes it to happen. This needs to be taken as a high priority, not fun having to split stacks just to save on food, especially golden apples.

Jeuv

Still in 1.7.2.

migrated

I confirm it, i saw it in 1.7.2

ZaCloud

This is so long-standing, and it still hasn't even been assigned yet? Sheesh...

In case it helps any, the "burp" sound effect usually plays when the second item is consumed. So this seems like it's an intended function. Yet, why have such a terrible idea built into the game? (Oh right, they also thought that random zombies spawning in your face was a great idea too...)

With normal food this isn't always an issue, but with golden apples or if you're on a hunger budget? Very much!

migrated

Yep, the fact that the burp seems to only occur when this happens makes me nervous that some genius thought it was more "realistic" or something and wrote this bug intentionally.

migrated

Definitely still there in 1.7.4
I was eating Steak this time, not that the food item matters. This happens often enough that I've gotten to the point where I avoid eating any food item with more empty hunger points than can be replenished by said item. Eating food should not make me nervous.

I would go over my theories for how to reproduce it, but MANY different posters have already done that quite effectively.
This is very much a high priority bug. It's one of the few bugs I am consciously aware of while playing Minecraft.

migrated

I've seen this bug numerous times, but just today it happened even after accessing a tile entity screen, which I've never seen before.

I ate a steak, then immediately accessed an anvil without switching away from the food, and after the anvil screen came up the burp noise happened and another food was consumed. As mentioned before, switching away from the food immediately after eating will prevent this bug, but apparently accessing an anvil screen will not. Just thought I'd mention it.

migrated

Still present in 1.7.5.

migrated

I haven't seen it in a while, I've been playing snapshots (up to 14w11b now) and deliberately left the food in my hand and it didn't happen. If it isn't fixed, it's become rare.

migrated

Steps to reproduce:
1. Start eating.
2. Sneak.
3. Stop sneaking at the same time as you're done eating.

Does not always work, but reproducible.

migrated

This happened to me while I was playing Hunger Games. I ate a piece of food, then scrolled to my sword. Then I ATE MY SWORD.

migrated

Happened in 14w33a while taming rabbits.

migrated

never noticed with eating my own food but definitely noticed feeding a single apple to zombie villagers and losing two apples on one villager.

migrated

Still an issue in 1.8.

migrated

Confirmed for 1.8.1 with carrots. Whether I am moving or not does not seem to affect the bug during normal play however, time of release seems to. Windows 8.1, Java 8 u25, Asus laptop but using a Microsoft wireless mouse. Hope this helps.

migrated

Still in 1.8.5. This has been going on through the last 4 computers I've owned. Timing of releasing the button is the key, and I'd learned to hold the button down a little longer, so it stopped happening. Today I was careless and it happened again. If you're trying to replicate, listen to the rhythm of Steve's eating. It sounds like "crunch, crunch, crunch, crunch, crunch, gulp". If you call the time between each crunch a "bite", you release the button 1 "bite" after the "gulp". After another "bite", there will be another "gulp" and a second food will be consumed.

migrated

Fixed for 1.9

It took much longer than I'd have liked, but I managed to get the concept of "using items" down to entities instead of players.
Basically it means two things: I can make skeletons pull back their bows, and a fix for that silly "eating things sometimes eats two" bug.

https://twitter.com/dinnerbone/status/614386358430375936
https://twitter.com/dinnerbone/status/614386558779686912

migrated

not allowed but...

bumpity thumpity

kumasasa

Yes, yes...

migrated

This just happened to me two times in 15w36d, I dont think it is fixed completely

This also happens with Chorus fruit which is supposed to have a cooldown after eating.

migrated

I tried for a bit, couldn't get it to happen. Leaving it open for now. Anybody else experiencing the issue, maybe even have a video (with debug screen open) of it?

migrated

I just recorded it happening once while I was exploring. (in 15w36d)

Youtube Video

migrated

Recent Hermit craft UHC video of this in action.
http://www.youtube.com/watch?v=ITduOnhZr94&t=16m7s

migrated

Still happens in 15w38b

[Mod] Neko

Affects 15w43a

migrated

Still in 15w44b

migrated

Still in 15w45a

Krimsar

Also in 15w47a

migrated

Affects 15w47b

migrated

Also affects 15w50a

migrated

Confirmed for 1.8.9 and 15w51b.

migrated

Confirmed for 16w02a.

JUE13

Confirmed for 16w03a

migrated

Confirmed for 16w06a

migrated

Confirmed for 1.9-Pre1

migrated

Confirmed for 1.9-Pre3

migrated

Confirmed for 1.9.1-pre3.

migrated

Confirmed for 16w15b

migrated

Confirmed. While I was playing in a server, I am eating a golden apple and I sneaked and I accidentally pressed a number in my keyboard which has a potion in that slot and it consumed my golden apple and my potion. I have to brew that potion again. 😞

migrated

Confirmed for 1.9.3-pre3.

migrated

Confirmed for 1.9.4.

migrated

Confirmed for 16w20a.

migrated

Confirmed for 16w21a.

migrated

Confirmed for 16w21b.

migrated

Confirmed for 1.10-pre1.

migrated

Confirmed for 1.10-pre2.

migrated

Confirmed for 1.10.

migrated

Also occurs when trying to feed dogs rotten flesh, player will sometimes get poison effect, in version 1.10

migrated

Confirmed for 1.10.1.

migrated

Confirmed for 1.10.2.

migrated

This is a really old thing, and I always assumed it was intentional because it has its own unique sound. This is the only way to play the burping sound in Minecraft so I'm pretty sure it was intentional. If someone can confirm this please do so

FaRo1

I'm pretty sure you get the eating and then the burping usually, the second one just leaves out the eating sound.

migrated

Tom, if this was intentional, it would have been closed as "works as intended" ages ago. Also, it makes no sense. Given that you have to stop holding the button with just the right timing, it is rather hard to do on purpose. My theory that Steve has an eating disorder makes more sense, and I only said that to be silly.

migrated

Confirmed in 16w32b.

migrated

Confirmed that this also happens with feeding.

I had two pieces of raw meat, I right-clicked on the first dog, walked towards the second dog, heard myself burp and I had no meat left.

Jake Thorson

I am on Minecraft 1.10.2 and I can't eat Cooked Porkchops. When I right-click with a Cooked Porkchop in my character's hand, the Cooked Porkchop moves slowly in front of my character, then stops moving for a few seconds, then it does the "eating" animation, but the animation is slow, there's no particles around the Cooked Porkchop, there's no eating sound, it takes 50-90 seconds, then the particles appear and the eating sound plays, then the Cooked Porkchop disappears, and my hunger meter stays at the same level that it was at before I started eating the Cooked Porkchop. So basically I ate a Cooked Porkchop in Minecraft for nothing.

FaRo1

This is not the bug you're looking for. Your thing sounds like just lag, although it's a bit different than usual. If you know how to record your game and how to reproduce your eating problem, you can create a new bug report and attach the video there.

migrated

Please do not mark unreleased versions as affected.
You don't have access to them yet.

JUE13

Confirmed for 17w17b

JUE13

Confirmed for 1.12-pre7

migrated

And for 1.12

migrated

Still an issue in 1.12.2 (single player, if it matters). Seems to happen more when wielding a shield.

muzikbike

Affects 18w11a

muzikbike

Affects 18w14a

muzikbike

Affects 18w14b

muzikbike

Affects 18w15a

muzikbike

Affects 18w16a

lord.quadrato

Confirmed for 18w20c

muzikbike

Affects 18w22c

muzikbike

Affects 1.13-pre1

muzikbike

Affects 1.13-pre2

migrated

Affects 18w31a (didn't check on 18w32a)

kumasasa

18w31a is outdated, we cannot set that version as affected.

migrated

Confirmed for 1.13.1.

migrated

Affects 19w06a

migrated

19w09a

migrated

19w11a

migrated

Appears to trigger when feeding foxes in 19w11b as well

migrated

19w12b

migrated

19w14a

gaspoweredpick

Confirmed for 19w14b

migrated

this is actually good cause you can move at normal speed while this happens

it is a bug yes, but it is useful

MacchuPicchu

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

FaRo1

Nope, the steps in this comment worked for me on the first try: https://bugs.mojang.com/browse/MC-849?focusedCommentId=150063&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-150063

migrated

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

 

Cries

This is still happening in 1.14.3.

migrated

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.

migrated

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