[MC-1580] Ghost Items from Trading with SHIFT-click Created: 01/Nov/12  Updated: 06/Jul/14  Resolved: 26/Jan/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.6, Snapshot 13w01b, Snapshot 13w09c, Minecraft 1.5.1, Snapshot 13w16b, Snapshot 13w17a, Minecraft 1.6.1, Minecraft 1.6.2
Fix Version/s: Minecraft 14w04a

Type: Bug
Reporter: Neko Assignee: Unassigned
Resolution: Fixed Votes: 16
Labels: None

Attachments: PNG File 2012-11-01_18.31.10.png     PNG File 2012-11-01_18.31.14.png     PNG File 2012-11-01_18.31.17.png     PNG File 2012-11-01_18.31.21.png     PNG File 2012-11-01_18.34.19.png    
Issue Links:
Duplicate
is duplicated by MC-24633 Putting too many emeralds in a trade ... Resolved
is duplicated by MC-60199 when trading with villagers lets say ... Resolved
is duplicated by MC-2858 Visual Inventory bug while trading wi... Resolved
is duplicated by MC-4587 Trading with villagers in C and S mod... Resolved
CHK:
Confirmation Status: Community Consensus

 Description   

If a player try to buy items from the villagers with SHIFT-click, he/she will get the correct number of the items. After the trading window closed, some emeralds pop-out and some of the items become "ghost" items. It will be replaced by other items from trading, or just disappear after the player re-enter the game. I've tested this in Minecraft 1.4 without any mods.



 Comments   
Comment by Anonymous User [ 13/May/14 ]

you can close immediately after trading and you get the items and the emeralds drop out (item duping)

Comment by [Mod] Ezekiel (ezfe) [ 26/Jan/14 ]

Seems fixed in 14w04b

Comment by Pablo González Rubio [ 08/Dec/13 ]

Confirmed for 1.7.3

Comment by Andrew Thomas [ 20/Sep/13 ]

It works perfectly fine for me in 1.6.2, 1.6.4, and 13w38c. What happens is when you shift-click the items (both from the trade and remainders of the unused that were not multiples) out of the trading grid, the items will auto-adjust in your inventory, even before pressing ESC. I have been trading this way for a while, and have never encountered ghost items.

How to test it:
1. Spawn a villager
2. Obtain 64 of whatever item(s) it wants for the trade
3. Place the whole stack into the trading window
4. shift-click the items out of the slot on the right, then remove any leftovers from the left.

The amounts will automatically adjust. You can see this by keeping an eye on the amounts of each item in your inventory. This is easier to see by getting a trade where you give emeralds and receive items, not as well the other way around.

Comment by Lars Kikkert [ 22/Jul/13 ]

also works in 1.6.2

Comment by Keith [ 29/Apr/13 ]

Confirmed for 13w17a.

Comment by Yichen Cao [ 27/Mar/13 ]

Its because of the limit of items you can trade before the trade gets locked and you'll have to trade the second trade before the first unlocks. Instead of the game stopping the trades, it lets you go on, but then update as soon as you exit out of the gui. Its intended, but a bit buggy.

Comment by Jed Harvey [ 04/Mar/13 ]

Confirmed for 13w09c

Comment by MegaScience [ 10/Jan/13 ]

Tested in Snapshot 13w02a. Still exists. Confirmed for Snapshot 13w02a.

Comment by MegaScience [ 05/Jan/13 ]

Confirmed to still exist in Snapshot 13w01b.

Comment by MegaScience [ 28/Dec/12 ]

Just tested in Minecraft 1.4.7 Pre-release. Confirmed to still be present. Not that it wasn't expected, considering how specific the fixes were.

Edit: I think I figured it out. The way the game cancels out trades when the trade locks isn't complete. The client can trade as much as possible, but the server won't. As such, the client creates ghost items which much be manually corrected. Furthermore, the client loses access to the emeralds until they leave the trade and the server causes them to drop the items. The client needs to treat trades the same way as the server so you only trade to a certain amount.

Comment by MegaScience [ 17/Dec/12 ]

This bug still exists in Minecraft 1.4.6 Pre-release. Affected versions should be updated to reflect this.

Comment by MegaScience [ 14/Dec/12 ]

Since in 12w50a, Villagers were supposed to be able to sell Enchanted Books, I went around trading with Priests (they seemed most likely to have it) to see if I could have it pop up. During this, I noticed I was dropping my emeralds when I shift-clicked. I was confused, so I started counting. A villager wanted 1 emerald for 3 redstone. I gave the villager 25 emerald and received 75 total redstone, which is the correct number. When closing the GUI, I dropped 19 emerald. When I tried to click the redstone in my inventory, most of it simply disappeared. Frustrating, odd bug. Voted up.

Edit: This still exists in Snapshot 12w50b, as well as versions in between. As such, the affected versions should be updated to cover these versions, please.

Comment by Sergio Lipstick [ 04/Nov/12 ]

I confirm this bug.
If i trade with "shift"-click, i buy goods for all the emeralds that i gave to villager. And after trading my emeralds fall from me to ground and at my inventory i have only a small part of purchased goods.

Generated at Sun Jan 12 11:54:56 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.