mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 05:59:53 +03:00
19 lines
723 B
Diff
19 lines
723 B
Diff
--- a/com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java
|
|
+++ b/com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java
|
|
@@ -63,6 +_,15 @@
|
|
}));
|
|
}
|
|
|
|
+ @Override
|
|
+ public boolean keyPressed(int key, int scanCode, int modifiers) {
|
|
+ if (key == org.lwjgl.glfw.GLFW.GLFW_KEY_ESCAPE) {
|
|
+ minecraft.setScreen(this.nextScreen);
|
|
+ return true;
|
|
+ }
|
|
+ return super.keyPressed(key, scanCode, modifiers);
|
|
+ }
|
|
+
|
|
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) {
|
|
this.renderBackground(p_230430_1_);
|
|
drawCenteredString(p_230430_1_, this.font, this.line1, this.width / 2, 80, 16777215);
|