The bug
If you place a stack of emeralds in a one for one trade (for example), and shift click the result, the villager will make the trade sound 64 times in quick succession, all overlapping.
I would have expected a cool-down of at least the length of the sound (and only one on shift-click, as 64 in succession overlapping or not, would still be ridiculous).
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 1
relates to 2
Comments 14
I wrote a command for anyone who would like to test this bug to check if it still exists. Run the following command:
/summon villager ~ ~ ~ {Offers:{Recipes:[{maxUses:128,buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:diamond",Count:1b}}]}}
This will summon a villager who sells one emerald for one diamond. You can easily grab a stack of emeralds and test the bug. I hope this helps!
It just hasn't been tested. I haven't had time to test every snapshot lately, because it's finals season. Is there some reason you'd expect pre-1 not to be affected? If so, I can try to find time to test it, but otherwise I'd assume it is.
You can also feel free to test it yourself, though it is a little less obvious now, as V&P villagers tend to do fewer trades in a row.
Confirmed.