Escape now returning to parent gui instead of menu (#68)

This commit is contained in:
Nixuge 2023-07-24 15:32:58 +02:00 committed by GitHub
parent b3e345fb6c
commit 4f2e82ede4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,12 @@ public class GuiProtocolSelector extends GuiScreen {
mc.displayGuiScreen(parent);
}
@Override
protected void keyTyped(char p_keyTyped_1_, int p_keyTyped_2_) throws IOException {
if (p_keyTyped_2_ == 1) //esc key
this.mc.displayGuiScreen(parent);
}
@Override
public void handleMouseInput() throws IOException {
list.handleMouseInput();