<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:03:20 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-4065] Messages/commands sent while in a bed won&apos;t be remembered in sent history</title>
                <link>https://bugs.mojang.com/browse/MC-4065</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;Thebug&quot;&gt;&lt;/a&gt;The bug&lt;/h3&gt;
&lt;p&gt;When in a bed, typing and submitting a message and/or command will be forgotten if you try to access that with the arrow keys while out of bed.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Codeanalysis&quot;&gt;&lt;/a&gt;Code analysis&lt;/h3&gt;
&lt;p&gt;Code analysis by &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=marcono1234&quot; class=&quot;user-hover&quot; rel=&quot;marcono1234&quot;&gt;marcono1234&lt;/a&gt; can be found in &lt;a href=&quot;https://bugs.mojang.com/browse/MC-4065?focusedCommentId=272126&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-272126&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;this comment&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16393">MC-4065</key>
            <summary>Messages/commands sent while in a bed won&apos;t be remembered in sent history</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="surfjamaica">Ryan S</reporter>
                        <labels>
                            <label>bed</label>
                            <label>chat</label>
                            <label>chat-history</label>
                    </labels>
                <created>Sun, 2 Dec 2012 10:16:59 +0100</created>
                <updated>Sat, 5 Jun 2021 00:39:23 +0200</updated>
                            <resolved>Tue, 26 May 2020 14:35:05 +0200</resolved>
                                    <version>Minecraft 1.4.5</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.7.2</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 1.7.5</version>
                    <version>Minecraft 1.7.9</version>
                    <version>Minecraft 14w20b</version>
                    <version>Minecraft 14w21a</version>
                    <version>Minecraft 14w21b</version>
                    <version>Minecraft 1.7.10</version>
                    <version>Minecraft 14w33c</version>
                    <version>Minecraft 14w34a</version>
                    <version>Minecraft 14w34b</version>
                    <version>Minecraft 14w34c</version>
                    <version>Minecraft 14w34d</version>
                    <version>Minecraft 1.8-pre1</version>
                    <version>Minecraft 1.8</version>
                    <version>Minecraft 15w34a</version>
                    <version>Minecraft 15w50a</version>
                    <version>Minecraft 1.9 Pre-Release 1</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 16w32a</version>
                    <version>Minecraft 16w32b</version>
                    <version>Minecraft 16w33a</version>
                    <version>Minecraft 16w35a</version>
                    <version>Minecraft 1.11</version>
                    <version>Minecraft 1.11.2</version>
                    <version>Minecraft 17w18b</version>
                    <version>Minecraft 1.12 Pre-Release 1</version>
                    <version>Minecraft 1.12 Pre-Release 2</version>
                    <version>Minecraft 1.12 Pre-Release 3</version>
                    <version>Minecraft 1.12 Pre-Release 6</version>
                    <version>Minecraft 1.12</version>
                    <version>Minecraft 1.12.1</version>
                    <version>Minecraft 1.12.2</version>
                    <version>Minecraft 18w03b</version>
                    <version>Minecraft 18w21a</version>
                    <version>Minecraft 1.13-pre1</version>
                    <version>Minecraft 1.13</version>
                    <version>Minecraft 1.13.1</version>
                    <version>Minecraft 1.14 Pre-Release 1</version>
                    <version>Minecraft 1.14 Pre-Release 2</version>
                    <version>Minecraft 1.14 Pre-Release 3</version>
                    <version>Minecraft 1.14 Pre-Release 4</version>
                    <version>Minecraft 1.14 Pre-Release 5</version>
                    <version>Minecraft 1.14</version>
                    <version>Minecraft 1.14.1</version>
                    <version>Minecraft 1.14.2 Pre-Release 1</version>
                    <version>Minecraft 1.14.2 Pre-Release 2</version>
                    <version>Minecraft 1.14.2</version>
                    <version>Minecraft 1.14.3</version>
                    <version>Minecraft 1.14.4 Pre-Release 1</version>
                    <version>Minecraft 1.14.4 Pre-Release 3</version>
                    <version>Minecraft 1.14.4 Pre-Release 4</version>
                    <version>Minecraft 1.14.4 Pre-Release 5</version>
                    <version>Minecraft 1.14.4 Pre-Release 6</version>
                    <version>1.14.4</version>
                    <version>19w34a</version>
                    <version>19w35a</version>
                    <version>19w36a</version>
                    <version>19w37a</version>
                    <version>19w38b</version>
                    <version>19w39a</version>
                    <version>19w40a</version>
                    <version>19w41a</version>
                    <version>19w42a</version>
                    <version>19w45b</version>
                    <version>19w46b</version>
                    <version>1.15 Pre-release 1</version>
                    <version>1.15 Pre-Release 2</version>
                    <version>1.15 Pre-release 3</version>
                    <version>1.15 Pre-release 4</version>
                    <version>1.15 Pre-release 5</version>
                    <version>1.15 Pre-release 6</version>
                    <version>1.15 Pre-release 7</version>
                    <version>1.15</version>
                    <version>1.15.1</version>
                    <version>1.15.1 Pre-release 1</version>
                    <version>1.15.2 Pre-Release 1</version>
                    <version>1.15.2 Pre-release 2</version>
                    <version>1.15.2</version>
                    <version>20w06a</version>
                    <version>20w07a</version>
                    <version>20w08a</version>
                    <version>20w09a</version>
                    <version>20w10a</version>
                    <version>20w11a</version>
                    <version>20w13a</version>
                    <version>20w13b</version>
                    <version>20w15a</version>
                    <version>20w17a</version>
                    <version>20w18a</version>
                    <version>20w19a</version>
                    <version>20w20a</version>
                    <version>20w20b</version>
                    <version>20w21a</version>
                                    <fixVersion>20w22a</fixVersion>
                                                        <votes>32</votes>
                                    <watches>18</watches>
                                                                            <comments>
                            <comment id="646128" author="greymagic27" created="Thu, 12 Mar 2020 15:28:44 +0100"  >&lt;p&gt;1.15.2 is already in the affected versions list, please make sure you check there before confirming.&lt;/p&gt;</comment>
                            <comment id="548236" author="zenico13" created="Fri, 17 May 2019 20:15:30 +0200"  >&lt;p&gt;Still in &lt;b&gt;1.14.2 Pre-Release 1&lt;/b&gt; and &lt;b&gt;1.14.2 Pre-Release 2&lt;/b&gt;&lt;/p&gt;</comment>
                            <comment id="546514" author="zenico13" created="Mon, 13 May 2019 17:58:13 +0200"  >&lt;p&gt;Still in &lt;b&gt;1.14.1 Release&lt;/b&gt;&lt;/p&gt;</comment>
                            <comment id="538248" author="zenico13" created="Tue, 23 Apr 2019 21:14:27 +0200"  >&lt;p&gt;Still in &lt;b&gt;1.14 Release&lt;/b&gt;&lt;/p&gt;</comment>
                            <comment id="536981" author="zenico13" created="Fri, 19 Apr 2019 12:49:31 +0200"  >&lt;p&gt;Still in &lt;b&gt;1.14 pre-3&lt;/b&gt;, &lt;b&gt;1.14 pre-4&lt;/b&gt; and &lt;b&gt;1.14 pre-5&lt;/b&gt;&lt;/p&gt;</comment>
                            <comment id="534451" author="zenico13" created="Fri, 12 Apr 2019 21:54:46 +0200"  >&lt;p&gt;Still in &lt;b&gt;1.14 Pre-Release 2&lt;/b&gt;&lt;/p&gt;</comment>
                            <comment id="534216" author="zenico13" created="Fri, 12 Apr 2019 12:29:41 +0200"  >&lt;p&gt;Confirmed for all Minecraft 1.14 snapshots, especially in &lt;b&gt;19w14a&lt;/b&gt;, &lt;b&gt;19w14b&lt;/b&gt; and &lt;b&gt;1.14 Pre-Release 1&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/attachment/207382/207382_Messages+and+commands+sent+while+in+a+bed+won%27t+be+remembered+in+sent+history.mp4&quot; title=&quot;Messages and commands sent while in a bed won&amp;#39;t be remembered in sent history.mp4 attached to MC-4065&quot;&gt;Messages and commands sent while in a bed won&apos;t be remembered in sent history.mp4&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://bugs.mojang.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="485867" author="kraif" created="Wed, 29 Aug 2018 17:55:32 +0200"  >&lt;p&gt;Confirmed for 1.13.1.&lt;/p&gt;</comment>
                            <comment id="476729" author="JIRAUSER54679" created="Thu, 26 Jul 2018 20:29:13 +0200"  >&lt;p&gt;Confirmed 1.13&lt;/p&gt;</comment>
                            <comment id="344682" author="tryashtar" created="Sat, 19 Nov 2016 06:12:35 +0100"  >&lt;p&gt;Still here up through 1.11, by the way.&lt;/p&gt;</comment>
                            <comment id="320708" author="marcono1234" created="Wed, 13 Jul 2016 14:37:20 +0200"  >&lt;p&gt;Good catch!&lt;/p&gt;

&lt;p&gt;It is now &lt;a href=&quot;https://bugs.mojang.com/browse/MC-105303&quot; title=&quot;Bed chat GUI not resetting sent messages history index after sending a message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-105303&quot;&gt;MC-105303&lt;/a&gt;. I hope the title fits well &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;And sorry for stealing you the chance for a code analysis &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
But we should not fight about that. I hope the one provided is correct&lt;/p&gt;</comment>
                            <comment id="320642" author="__null" created="Wed, 13 Jul 2016 03:19:28 +0200"  >&lt;p&gt;I can definitely confirm for 1.10.2. I&apos;ve also noticed a second (related) bug:&lt;/p&gt;

&lt;p&gt;Send the messages &quot;#1&quot;, &quot;#2&quot;, and &quot;#3&quot; in that order. Hop onto a bed and press the up arrow key twice, then Enter, to resend the &quot;#2&quot; message. Now, when you press the up arrow key again, &quot;#1&quot; will be displayed instead of &quot;#3&quot;.&lt;/p&gt;

&lt;p&gt;Can anyone summarize the above in one sentence? &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/tongue.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="286855" author="immaterialise" created="Wed, 17 Feb 2016 20:38:28 +0100"  >&lt;p&gt;Confirmed for 1.9-pre1&lt;/p&gt;</comment>
                            <comment id="272126" author="marcono1234" created="Sat, 12 Dec 2015 19:05:30 +0100"  >&lt;p&gt;Confirmed for&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;b&gt;15w50a&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The reason for that is that currently the method &lt;tt&gt;keyTyped(char typedChar, int keyCode)&lt;/tt&gt; in the class &lt;tt&gt;/Client/src/net/minecraft/client/gui/GuiSleepMP.java&lt;/tt&gt; (MCP 1.8 names) calls &lt;tt&gt;this.mc.thePlayer.sendChatMessage(var3);&lt;/tt&gt; which directly sends the message to the server, however it should call instead the method &lt;tt&gt;func_175275_f(String p_175275_1_)&lt;/tt&gt;.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * Fired when a key is typed (except F11 who toggle full screen). This is the equivalent of
 * KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)
 */
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; void keyTyped(&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; typedChar, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; keyCode) &lt;span class=&quot;code-keyword&quot;&gt;throws&lt;/span&gt; IOException
{
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (keyCode == 1)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.wakeFromSleep();
	}
	&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (keyCode != 28 &amp;amp;&amp;amp; keyCode != 156)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.keyTyped(typedChar, keyCode);
	}
	&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
	{
		&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; var3 = &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.inputField.getText().trim();

		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!var3.isEmpty())
		{
			&lt;span class=&quot;code-comment&quot;&gt;// Changed &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;
&lt;/span&gt;			&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.func_175275_f(var3);
			&lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.mc.thePlayer.sendChatMessage(var3);
&lt;/span&gt;		}

		&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.inputField.setText(&quot;&quot;);
		&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.mc.ingameGUI.getChatGUI().resetScroll();
	}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; For Minecraft 1.10 decompiled using MCP 9.30 the method that should be called is &lt;tt&gt;net.minecraft.client.gui.GuiScreen.sendChatMessage(String)&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="243764" author="zuzu_typ" created="Wed, 19 Aug 2015 16:29:41 +0200"  >&lt;p&gt;confirmed for 15w34a&lt;/p&gt;</comment>
                            <comment id="208188" author="c_moneysmith" created="Sat, 8 Nov 2014 03:12:10 +0100"  >&lt;p&gt;confirmed for 1.8 official release&lt;/p&gt;</comment>
                            <comment id="193505" author="creeper_3000" created="Sun, 24 Aug 2014 20:15:31 +0200"  >&lt;p&gt;Confirmed for 1.8pre1 and before. This is a little annoying, but not game breaking, but I think the fix shouldn&apos;t take much.&lt;/p&gt;</comment>
                            <comment id="161236" author="marcono1234" created="Sun, 1 Jun 2014 17:35:04 +0200"  >&lt;p&gt;Confirmed for 14w21b&lt;/p&gt;</comment>
                            <comment id="142835" author="ezekielelin" created="Mon, 24 Feb 2014 15:15:52 +0100"  >&lt;p&gt;Is this still a concern in the latest Minecraft version &lt;b&gt;14w08a&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="97454" author="firextract" created="Wed, 7 Aug 2013 04:01:23 +0200"  >&lt;p&gt;I&apos;ll just say I can also confirm this!&lt;/p&gt;</comment>
                            <comment id="53844" author="bljat" created="Sat, 16 Mar 2013 01:51:51 +0100"  >&lt;p&gt;Is this still a concern in the current Minecraft version? 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="28678" author="cubethethird" created="Sat, 15 Dec 2012 21:22:25 +0100"  >&lt;p&gt;Can confirm.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="37466">MC-18945</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="47308">MC-27386</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="68007">MC-43667</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="75904">MC-50080</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="79217">MC-53031</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="104275">MC-76023</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="160714">MC-112615</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="201759">MC-130188</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="146462">MC-105303</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="196300">MC-127573</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="259188">MC-160710</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="207382" name="Messages and commands sent while in a bed won&apos;t be remembered in sent history.mp4" size="4207067" author="ZeNico13" created="Fri, 12 Apr 2019 12:28:13 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 30 Dec 2013 01:49:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11608"><![CDATA[Commands]]></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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i087qn:</customfieldvalue>

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