Fix recording controls on menu-less pause screen (fixes #575)

This commit is contained in:
Jonas Herzig
2021-12-07 18:53:35 +01:00
parent 3d9d40656e
commit f4196748f5

View File

@@ -87,6 +87,9 @@ public class GuiRecordingControls extends EventRegistrations {
if (!(guiScreen instanceof GameMenuScreen)) {
return;
}
if (buttonList.isEmpty()) {
return; // menu-less pause (F3+Esc)
}
Function<Integer, Integer> yPos =
MCVer.findButton(buttonList, "menu.returnToMenu", 1)
.map(Optional::of)