Custom GUIs now only close when the ESC key is pressed.

This commit is contained in:
luisc committed 2022-03-09 00:33:55 -06:00
1 parent 16321dd4ff
commit 60e14f548e
1 file changed
+1 -1
@@ -513,7 +513,7 @@ public class GuiCustom extends GuiScreen implements ICustomScrollListener, IGuiD
}
protected void keyTyped(char typedChar, int keyCode) {
if (keyCode == 1 || keyCode == this.mc.gameSettings.keyBindInventory.getKeyCode())
if (keyCode == 1)
{
this.mc.thePlayer.closeScreen();
}