-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 16w42a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11
-
None
-
Confirmed
Unlike most other bed-based chat messages, such as those informing you of monsters or sleeping at the incorrect time, the text that appears when your spawn point is missing is sent to the chat. It should be sent to the action bar.
Fix: (Based off of Minecraft 1.11, MCP 9.35)
net.minecraft.client.network.NetHandlerPlayClient.handleChangeGameState(SPacketChangeGameState packetIn)
public void handleChangeGameState(SPacketChangeGameState packetIn) { if (i >= 0 && i < SPacketChangeGameState.MESSAGE_NAMES.length && SPacketChangeGameState.MESSAGE_NAMES[i] != null) { //was previously set to false (true is for actionbar) entityplayer.addChatComponentMessage(new TextComponentTranslation(SPacketChangeGameState.MESSAGE_NAMES[i], new Object[0]), true); } }
- is duplicated by
-
MC-264309 "You have no home bed or charged respawn anchor, or it was obstructed" appears in chat instead of above the hotbar
- Resolved