Messages/commands sent while in a bed won't be remembered in sent history
The bug
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.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Linked Issues
is duplicated by8
- Fixed
Ryan S
- 32
- 18
- Confirmed
- Commands
- bed chat chat-history
1.4.5 - 20w21a
1.4.5 1.4.7 1.5 1.5.2 1.6.1 1.6.2 1.7.2 1.7.4 1.7.5 1.7.9 14w20b 14w21a 14w21b 1.7.10 14w33c 14w34a 14w34b 14w34c 14w34d 1.8-pre1 1.8 15w34a 15w50a 1.9-pre1 1.10.2 16w32a 16w32b 16w33a 16w35a 1.11 1.11.2 17w18b 1.12-pre1 1.12-pre2 1.12-pre3 1.12-pre6 1.12 1.12.1 1.12.2 18w03b 18w21a 1.13-pre1 1.13 1.13.1 1.14-pre1 1.14-pre2 1.14-pre3 1.14-pre4 1.14-pre5 1.14 1.14.1 1.14.2-pre1 1.14.2-pre2 1.14.2 1.14.3 1.14.4-pre1 1.14.4-pre3 1.14.4-pre4 1.14.4-pre5 1.14.4-pre6 1.14.4 19w34a 19w35a 19w36a 19w37a 19w38b 19w39a 19w40a 19w41a 19w42a 19w45b 19w46b 1.15-pre1 1.15-pre2 1.15-pre3 1.15-pre4 1.15-pre5 1.15-pre6 1.15-pre7 1.15 1.15.1 1.15.1-pre1 1.15.2-pre1 1.15.2-pre2 1.15.2 20w06a 20w07a 20w08a 20w09a 20w10a 20w11a 20w13a 20w13b 20w15a 20w17a 20w18a 20w19a 20w20a 20w20b 20w21a- 20w22a
Created Issue:
Beds and Chat History
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.
- Unresolved
- Open
- Minecraft - Public
- Unconfirmed
- Creative
- 1.4.5
is duplicated by
is duplicated by
is duplicated by
is duplicated by
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.
Could you please include that?
relates to
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.
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.
Code analysis by Marcono1234 can be found in this comment.
is duplicated by
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.
Code analysis by Marcono1234 can be found in this comment.
The bug
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.
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Beds andChatHistoryBeds and chat history
relates to
Beds and chat historyMessages/commands sent while in a bed won't be remembered in sent history
is duplicated by
relates to
Still in 1.15.2
is duplicated by
is duplicated by
Duplicate of MC-4065, please use the search function to see if your bug has already been submitted. Currently over 57% of tickets are being resolved as duplicate.
Duplicate of Unresolved
MC-4065
If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-4065 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicate of MC-4065 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Duplicates MC-4065
The bug
When you lay in a bed, select a previously sent chat message, send this message and use the up or down arrow key again to select a previously sent chat message again, you will not see the last sent message first but instead the ones where you stopped moving in the history before.
How to reproduce
- (Not in a bed) Open the chat and type three different messages, for example
1
2
3
- Start sleeping in a bed
- Use the UP arrow key to select the message "2" and send the message
- Use the UP arrow key again
→ The message that appears is "1" (the first message) instead of "3" ifMC-4065is not fixed or "2" (the last message) ifMC-4065is fixed
The reason
The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.
The reason for this is that the method net.minecraft.client.gui.GuiScreen.sendChatMessage(String) is not resetting the value of the sentHistoryCursor field, which stores the current index of the chat messages history the player last looked at. This method should set the value of the field to the size of the sent chat messages history list. For the normal chat GUI this bug is not visible because every time you open it, the GUI is recreated and the value of this field is "initialized" to the size of the message history list.
Maybe this and MC-4065 can be generalized to "Bed chat GUI not updating sent chat history"?
They are two different issues. MC-4065 only affects the bed chat GUI whereas this one affects the chat gui (and all its subclasses).
Duplicate of MC-4065. If you have not, please use the search function in the future to check whether your bug already has been reported. More than 50% of all bugs ever reported had to be closed as duplicate.
Can confirm.
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.
I'll just say I can also confirm this!
Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Confirmed for 14w21b
Confirmed for 1.8pre1 and before. This is a little annoying, but not game breaking, but I think the fix shouldn't take much.
confirmed for 1.8 official release
confirmed for 15w34a
Confirmed for
The reason for that is that currently the method keyTyped(char typedChar, int keyCode) in the class /Client/src/net/minecraft/client/gui/GuiSleepMP.java (MCP 1.8 names) calls this.mc.thePlayer.sendChatMessage(var3); which directly sends the message to the server, however it should call instead the method func_175275_f(String p_175275_1_).
Note: For Minecraft 1.10 decompiled using MCP 9.30 the method that should be called is net.minecraft.client.gui.GuiScreen.sendChatMessage(String).
Confirmed for 1.9-pre1
I can definitely confirm for 1.10.2. I've also noticed a second (related) bug:
Send the messages "#1", "#2", and "#3" in that order. Hop onto a bed and press the up arrow key twice, then Enter, to resend the "#2" message. Now, when you press the up arrow key again, "#1" will be displayed instead of "#3".
Can anyone summarize the above in one sentence?
Good catch!
It is now MC-105303. I hope the title fits well
And sorry for stealing you the chance for a code analysis
But we should not fight about that. I hope the one provided is correct
Still here up through 1.11, by the way.
Confirmed 1.13
Confirmed for 1.13.1.
Confirmed for all Minecraft 1.14 snapshots, especially in 19w14a, 19w14b and 1.14 Pre-Release 1
Messages and commands sent while in a bed won't be remembered in sent history.mp4
Still in 1.14 Pre-Release 2
Still in 1.14 pre-3, 1.14 pre-4 and 1.14 pre-5
Still in 1.14 Release
Still in 1.14.1 Release
Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2
1.15.2 is already in the affected versions list, please make sure you check there before confirming.