Mojira Archive
MC-183776

After switching game modes using F3+F4, you need to press F3 twice to toggle the debug screen

The Bug

For some very odd reason you need to click F3 twice now if you change gamemodes this way. Doesn't affect commands. Very good UI for the new gamemode screen I have to say, good work Mojang!

Steps to Reproduce

  • Open the gamemode switcher and switch into any gamemode. (Hold F3 and press F4 to bring up this menu and to navigate between gamemodes).
  • Hit the F3 key in an attempt to enable the debug menu.
  • Take note of whether the F3 debug menu is enabled.
  • Hit the F3 key again.
  • Take note as to whether or not the F3 debug menu is now enabled.

Observed Behavior

After using the gamemode switcher, you are required to press the F3 key twice in order to enable the debug menu.

Expected Behavior

After using the gamemode switcher, you would not be required to press the F3 key twice in order to enable the debug menu. Instead, you should only have to press the F3 key once in order to enable the debug menu after using the gamemode switcher.

Code analysis

Code analysis by [Mod] Chandler can be found in this comment.