<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:01:43 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-3587] Last use of an anvil causes player to drop their item</title>
                <link>https://bugs.mojang.com/browse/MC-3587</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Upon using an anvil for the last time before it breaks, taking the output out causes the item to be dropped/thrown.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What I expected to happen was...:&lt;/b&gt;&lt;br/&gt;
 I expected that the item would be placed into my inventory when the anvil breaks.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What actually happened was...:&lt;/b&gt;&lt;br/&gt;
 I removed the new item (without shift-click) causing the anvil to break. As the menu forcefully closes, the item I was holding in the cursor is thrown onto the floor.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Use all charges of the anvil.&lt;/li&gt;
	&lt;li&gt;On the last charge, pick up the new item with a click.&lt;/li&gt;
	&lt;li&gt;Anvil breaks, causing the menu to close.&lt;br/&gt;
  &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; the item is thrown&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="15678">MC-3587</key>
            <summary>Last use of an anvil causes player to drop their item</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="Ulraf">[Mojang] Ulraf</assignee>
                                    <reporter username="markderickson">[Mod] markderickson</reporter>
                        <labels>
                            <label>anvil</label>
                            <label>inventory</label>
                    </labels>
                <created>Wed, 21 Nov 2012 05:36:43 +0100</created>
                <updated>Mon, 27 Sep 2021 08:34:18 +0200</updated>
                            <resolved>Wed, 5 May 2021 16:29:09 +0200</resolved>
                                    <version>Minecraft 1.4.5</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Snapshot 13w25c</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w02c</version>
                    <version>Minecraft 14w03b</version>
                    <version>Minecraft 14w04a</version>
                    <version>Minecraft 14w04b</version>
                    <version>Minecraft 1.7.10</version>
                    <version>Minecraft 14w30b</version>
                    <version>Minecraft 14w30c</version>
                    <version>1.16.3</version>
                    <version>1.16.4 Pre-release 1</version>
                    <version>1.16.4 Pre-release 2</version>
                    <version>1.16.4 Release Candidate 1</version>
                    <version>1.16.4</version>
                    <version>20w45a</version>
                    <version>20w46a</version>
                    <version>20w48a</version>
                    <version>20w49a</version>
                    <version>20w51a</version>
                    <version>21w03a</version>
                    <version>1.16.5</version>
                    <version>21w05a</version>
                    <version>21w05b</version>
                    <version>21w06a</version>
                    <version>21w07a</version>
                    <version>21w08b</version>
                    <version>21w10a</version>
                    <version>21w11a</version>
                    <version>21w13a</version>
                    <version>21w14a</version>
                    <version>21w15a</version>
                    <version>21w16a</version>
                    <version>21w17a</version>
                                    <fixVersion>21w18a</fixVersion>
                                                        <votes>11</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="1079353" author="JIRAUSER647718" created="Mon, 27 Sep 2021 08:34:18 +0200"  >&lt;p&gt;Seems that this is the way this bug was fixed: items that are held with the cursor when the inventory or any GUI closes, are now transferred directly into the inventory instead of thrown out. &lt;/p&gt;</comment>
                            <comment id="987993" author="tekoxvi" created="Sat, 8 May 2021 04:40:44 +0200"  >&lt;p&gt;I never thought this was a bug. I imagine it as hitting your item with a hammer to forge it, but your anvil breaks when you hit it so it falls to the ground before you can grab it.&#160;&lt;/p&gt;</comment>
                            <comment id="986471" author="jack_mckalling" created="Wed, 5 May 2021 22:46:08 +0200"  >&lt;p&gt;When the anvil is closed, items still in any of the slots or in the cursor are now correctly placed inside the inventory just like with chests.&lt;/p&gt;</comment>
                            <comment id="912642" author="JIRAUSER566325" created="Thu, 4 Feb 2021 19:36:57 +0100"  >&lt;p&gt;Can confirm in 21w05b.&lt;/p&gt;</comment>
                            <comment id="849520" author="jack_mckalling" created="Wed, 25 Nov 2020 21:23:09 +0100"  >&lt;p&gt;Also works if you start with a &quot;Damaged Anvil&quot; from the creative inventory, and then combine two Sharpness I enchanted books back in survival, a couple of times.&lt;br/&gt;
Doesn&apos;t happen if you shift-click the output, so it appears that the drop happens because you&apos;re holding it in the cursor while the gui is forced closed.&lt;/p&gt;</comment>
                            <comment id="849453" author="JIRAUSER566325" created="Wed, 25 Nov 2020 20:42:35 +0100"  >&lt;p&gt;Can confirm in 20w48a.&lt;/p&gt;</comment>
                            <comment id="809017" author="skaijie" created="Sun, 20 Sep 2020 06:36:39 +0200"  >&lt;p&gt;In Bedrock edition the item will be sent back to the inventory instead of being thrown out, perhaps a similar mechanic could also be used&lt;/p&gt;</comment>
                            <comment id="807300" author="ericz1" created="Wed, 16 Sep 2020 18:28:56 +0200"  >&lt;p&gt;Changed the reporter to &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=markderickson&quot; class=&quot;user-hover&quot; rel=&quot;markderickson&quot;&gt;markderickson&lt;/a&gt;, as they have requested it in Discord and the original reporter has been inactive.&lt;/p&gt;</comment>
                            <comment id="180455" author="tlangas" created="Sun, 27 Jul 2014 02:07:44 +0200"  >&lt;p&gt;This issue is still active. Tested with 14w30c.&lt;br/&gt;
When ever the last use of an anvil is used, it will break and close the inventory menu. &amp;lt;-- That is the issue.&lt;br/&gt;
This causes the item you just removed to be dropped/thrown,  as you cannot hold an item, with the mouse cursor, when the inventory menu is closed.&lt;br/&gt;
The only logical solution I see is to add a forth state to the anvil. aka broken. or to automatically switch to the player&apos;s inventory menu, before closing. This way the user can still place the item back into their inventory. It will also prevent the extremely rare chance that the item will get lost (like my first example), when thrown, or stolen by another nearby player.&lt;/p&gt;</comment>
                            <comment id="135531" author="tlangas" created="Sun, 26 Jan 2014 17:20:20 +0100"  >&lt;p&gt;This is still an issue, as of 14w04b.&lt;br/&gt;
Any item still in hand when using any object will get thrown forward, when the object is destroyed before the player can place it in their inventory.&lt;/p&gt;</comment>
                            <comment id="135502" author="ezekielelin" created="Sun, 26 Jan 2014 16:41:56 +0100"  >&lt;p&gt;Is this still a concern in the latest Minecraft version &lt;b&gt;14w04b&lt;/b&gt;? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="76663" author="ollathir75@hotmail.com" created="Mon, 24 Jun 2013 19:51:34 +0200"  >&lt;p&gt;Seen this in 1.5.2 multiple times as well, but my anvil wasn&apos;t over the Void so I didn&apos;t lose what I was working on.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="120391">MC-87935</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 26 Jan 2013 20:40:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11626"><![CDATA[Items]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></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_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Survival]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_12200" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Mojang Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11701"><![CDATA[Important]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i06sxr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12201" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>Triaged Time</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 16 Sep 2020 09:18:18 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>