<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:54:56 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-1580] Ghost Items from Trading with SHIFT-click</title>
                <link>https://bugs.mojang.com/browse/MC-1580</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;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 &quot;ghost&quot; items. It will be replaced by other items from trading, or just disappear after the player re-enter the game. I&apos;ve tested this in Minecraft 1.4 without any mods.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12920">MC-1580</key>
            <summary>Ghost Items from Trading with SHIFT-click</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="gttneko">Neko</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Nov 2012 11:38:36 +0100</created>
                <updated>Sun, 6 Jul 2014 21:30:20 +0200</updated>
                            <resolved>Sun, 26 Jan 2014 16:26:10 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Snapshot 13w01b</version>
                    <version>Snapshot 13w09c</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Snapshot 13w16b</version>
                    <version>Snapshot 13w17a</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                                    <fixVersion>Minecraft 14w04a</fixVersion>
                                                        <votes>16</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="157412" author="minecrafter104" created="Tue, 13 May 2014 07:20:28 +0200"  >&lt;p&gt;you can close immediately after trading and you get the items and the emeralds drop out (item duping)&lt;/p&gt;</comment>
                            <comment id="135475" author="ezekielelin" created="Sun, 26 Jan 2014 16:26:10 +0100"  >&lt;p&gt;Seems fixed in 14w04b&lt;/p&gt;</comment>
                            <comment id="123976" author="pagoru" created="Sun, 8 Dec 2013 20:13:55 +0100"  >&lt;p&gt;Confirmed for 1.7.3&lt;/p&gt;</comment>
                            <comment id="104890" author="greatmastermario" created="Fri, 20 Sep 2013 20:03:05 +0200"  >&lt;p&gt;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.&lt;/p&gt;

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

&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="93731" author="m1ner1" created="Mon, 22 Jul 2013 20:53:28 +0200"  >&lt;p&gt;also works in 1.6.2&lt;/p&gt;</comment>
                            <comment id="64306" author="keithicus420" created="Mon, 29 Apr 2013 21:26:39 +0200"  >&lt;p&gt;Confirmed for 13w17a.&lt;/p&gt;</comment>
                            <comment id="57410" author="pen13531" created="Wed, 27 Mar 2013 02:10:53 +0100"  >&lt;p&gt;Its because of the limit of items you can trade before the trade gets locked and you&apos;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.&lt;/p&gt;</comment>
                            <comment id="49507" author="solomon_97" created="Mon, 4 Mar 2013 03:19:30 +0100"  >&lt;p&gt;Confirmed for 13w09c&lt;/p&gt;</comment>
                            <comment id="34676" author="megascience" created="Thu, 10 Jan 2013 16:30:46 +0100"  >&lt;p&gt;Tested in Snapshot 13w02a. Still exists. Confirmed for Snapshot 13w02a.&lt;/p&gt;</comment>
                            <comment id="33011" author="megascience" created="Sat, 5 Jan 2013 01:28:03 +0100"  >&lt;p&gt;Confirmed to still exist in Snapshot 13w01b.&lt;/p&gt;</comment>
                            <comment id="31279" author="megascience" created="Fri, 28 Dec 2012 22:03:26 +0100"  >&lt;p&gt;Just tested in Minecraft 1.4.7 Pre-release. Confirmed to still be present. Not that it wasn&apos;t expected, considering how specific the fixes were.&lt;/p&gt;

&lt;p&gt;Edit: I think I figured it out. The way the game cancels out trades when the trade locks isn&apos;t complete. The client can trade as much as possible, but the server won&apos;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.&lt;/p&gt;</comment>
                            <comment id="29172" author="megascience" created="Mon, 17 Dec 2012 23:06:52 +0100"  >&lt;p&gt;This bug still exists in Minecraft 1.4.6 Pre-release. Affected versions should be updated to reflect this.&lt;/p&gt;</comment>
                            <comment id="28298" author="megascience" created="Fri, 14 Dec 2012 07:29:45 +0100"  >&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="17971" author="mrsergio" created="Sun, 4 Nov 2012 12:36:40 +0100"  >&lt;p&gt;&lt;b&gt;I confirm this bug.&lt;/b&gt;&lt;br/&gt;
If i trade with &quot;shift&quot;-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.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="43936">MC-24633</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="87442">MC-60199</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14723">MC-2858</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17115">MC-4587</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="11589" name="2012-11-01_18.31.10.png" size="136763" author="gttneko" created="Thu, 1 Nov 2012 11:53:37 +0100"/>
                            <attachment id="11591" name="2012-11-01_18.31.14.png" size="135474" author="gttneko" created="Thu, 1 Nov 2012 11:54:41 +0100"/>
                            <attachment id="11592" name="2012-11-01_18.31.17.png" size="342834" author="gttneko" created="Thu, 1 Nov 2012 11:54:41 +0100"/>
                            <attachment id="11593" name="2012-11-01_18.31.21.png" size="349137" author="gttneko" created="Thu, 1 Nov 2012 11:54:41 +0100"/>
                            <attachment id="11594" name="2012-11-01_18.34.19.png" size="292943" author="gttneko" created="Thu, 1 Nov 2012 11:54:41 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Feb 2013 01:36:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10302"><![CDATA[Community Consensus]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0mptr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>