<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:03:11 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-4024] Chest glitch - Server/Client desync</title>
                <link>https://bugs.mojang.com/browse/MC-4024</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Cloning to reopen as this is not fixed in 1.4.5, as the animations can still show this same behavior as reported in this ticket, but there is more damages than the animations alone that I feel previous reporters likely missed and didn&apos;t understand the 2 were related.&lt;/p&gt;


&lt;p&gt;----------------&lt;br/&gt;
Better Description&lt;br/&gt;
----------------&lt;br/&gt;
If a user manages to right click a chest 2 or more times before the server has registered it and sent the user the Container Open packet, the user chest the server thinks the user has open will be the first click, where as the client will think its the second click.&lt;/p&gt;

&lt;p&gt;This causes the server to ignore everything the user does with that chest, so any items pulled out will stay in the chest, and any items put in will stay in players inventory.&lt;/p&gt;

&lt;p&gt;As previously reported, the chest animations get into an inverted state.&lt;/p&gt;

&lt;p&gt;This is 100% reproduceable by simply disabling your internet connection while on SMP, click the chest 2+ times, reenable internet.&lt;/p&gt;

&lt;p&gt;The server will catch up to your packets once your internet reconnects and trigger the issue.&lt;/p&gt;

&lt;p&gt;For players on slower network connections, this happens accidently often, causing lots of confusion on why their items are not where they put them.&lt;/p&gt;


&lt;p&gt;Confirmed in 1.4.5 Vanilla and Craftbukkit. This issue has existed since 1.3.1&lt;/p&gt;



&lt;p&gt;----------------&lt;br/&gt;
Original Description&lt;br/&gt;
----------------&lt;/p&gt;

&lt;p&gt;This happens from time to time when playing SMP with a friend on my local minecraft server.&lt;/p&gt;

&lt;p&gt;The chest seems to remain on the open state (regarding the animation) and closes once I rightclick it to view its inventory, so basically it&apos;s inverted. The issue doesn&apos;t seem to resolve itself after relogging, so it must be a server-side issue.&lt;/p&gt;

&lt;p&gt;It usually happens after playing for a while, after frequently using a chest. Have been able to reproduce this for a few times, so I&apos;ll provide a screenshot whenever it happens again.&lt;/p&gt;</description>
                <environment>n/a</environment>
        <key id="16342">MC-4024</key>
            <summary>Chest glitch - Server/Client desync</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="jeb">[Mojang] Jeb (Jens Bergensten)</assignee>
                                    <reporter username="aikar">Aikar</reporter>
                        <labels>
                            <label>chest</label>
                    </labels>
                <created>Sat, 1 Dec 2012 05:21:48 +0100</created>
                <updated>Tue, 3 Apr 2018 20:14:41 +0200</updated>
                            <resolved>Thu, 13 Dec 2012 16:46:57 +0100</resolved>
                                    <version>Minecraft 1.4.5</version>
                                    <fixVersion>Snapshot 12w50b</fixVersion>
                                                        <votes>2</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="28077" author="jeb" created="Thu, 13 Dec 2012 16:46:57 +0100"  >&lt;p&gt;Thanks for the detailed bug report! I was able to reproduce and fix it, turned out the client responded with a &quot;close container&quot; packet when it received one, so the server would close two containers when the client only closed one.&lt;/p&gt;</comment>
                            <comment id="26849" author="pizza2004" created="Thu, 6 Dec 2012 22:15:58 +0100"  >&lt;p&gt;Why not just make the client ignore right clicks after you right click a chest until it gets a response from the server?  And, if this is really the cause of the bug they say that causes items not to shift around I imagine it probably affects all containers, so why not just make it do this for all containers.&lt;/p&gt;

&lt;p&gt;In other words, the client says, &quot;A chest was just right-clicked.&quot; and tries to send the packet to the server, until the server responds the client just ignores all subsequent right clicks.&lt;/p&gt;</comment>
                            <comment id="26829" author="xxcoder" created="Thu, 6 Dec 2012 19:49:35 +0100"  >&lt;p&gt;Interesting. Bug appears if 2 persons use chest at same time. My bro clicked chest, I went in, deposited stuff and left to make more stuff. My bro finished and left and chest top was still up.&lt;/p&gt;

&lt;p&gt;Maybe some sort of counter is needed. If browsing users is &amp;gt;= 1, lid stay up?&lt;/p&gt;</comment>
                            <comment id="26809" author="xerca" created="Thu, 6 Dec 2012 17:45:21 +0100"  >&lt;p&gt;This (when you think an item is taken/placed but it actually isn&apos;t) happened to me lots of times and it is really annoying when I don&apos;t notice it soon after, but I&apos;m not sure if that happened when I clicked more than once on the chests. I hope this is the only bug that causes this.&lt;/p&gt;</comment>
                            <comment id="26606" author="cooldud655" created="Tue, 4 Dec 2012 22:18:58 +0100"  >&lt;p&gt;this happens more often on slower computers when the game lags trying to run the movement and causes the player to do the accidental double click and causing this glitch&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10101">
                    <name>Cloners</name>
                                            <outwardlinks description="clones">
                                        <issuelink>
            <issuekey id="11782">MC-515</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="20112">MC-7328</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11333">MC-88</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11639">MC-376</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11781">MC-514</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11846">MC-576</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12060">MC-781</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12421">MC-1116</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12982">MC-1638</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12984">MC-1640</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13005">MC-1649</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13099">MC-1738</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13161">MC-1792</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13197">MC-1826</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13198">MC-1827</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13261">MC-1886</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13285">MC-1909</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13287">MC-1911</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13332">MC-1951</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13447">MC-2055</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13487">MC-2095</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13613">MC-2211</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13673">MC-2267</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14462">MC-2694</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17518">MC-4960</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14531" name="2012-10-27_17.25.58.png" size="1496810" author="aikar" created="Sat, 1 Dec 2012 05:21:50 +0100"/>
                            <attachment id="14532" name="2012-10-27_17.26.02.png" size="1285935" author="aikar" created="Sat, 1 Dec 2012 05:21:50 +0100"/>
                            <attachment id="14533" name="2012-11-02_16.40.18.png" size="137847" author="aikar" created="Sat, 1 Dec 2012 05:21:50 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 4 Dec 2012 22:21:00 +0100</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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i032k7:</customfieldvalue>

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