-
Bug
-
Resolution: Fixed
-
Minecraft 15w51b, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w50a, Minecraft 18w06a, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 1.14.4, 19w46b
-
Confirmed
-
Accessibility, UI
-
Important
The bug
When you press ESC while you are changing settings for a world you want to generate (for example "Superflat" or "Customized") the game returns to the main menu instead of the world list.
How to reproduce
- Open the "Superflat" settings for creating a new world
- Press ESC
→ You will be returned to the main menu instead of the world list
The reason
The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.
The reason why this happens is because both net.minecraft.client.gui.GuiCreateFlatWorld and net.minecraft.client.gui.GuiFlatPresets call the protected void keyTyped(char typedChar, int keyCode) throws IOException method of the net.minecraft.client.gui.GuiScreen class which returns to the main menu if the Escape key is pressed. In contrast to this the net.minecraft.client.gui.GuiCreateWorld class does not call this method and binds Enter and numpad Enter to create the world. A default binding for the Enter keys might make sense.
- relates to
-
MC-122135 Several GUIs are not closed when pressing ESC
- Resolved
-
MC-125104 Cancelling delete world screen and options sub-menus using ESC opens main menu
- Resolved
-
MC-122495 Cancelling backup screen using ESC opens main menu
- Resolved
-
MC-182909 Esc from Customised World's Biome selection screen kicks us back to main menu
- Resolved