mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 09:26:08 +03:00
33 lines
2.0 KiB
Diff
33 lines
2.0 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/gui/GuiIngameMenu.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/gui/GuiIngameMenu.java
|
|
@@ -30,7 +30,8 @@
|
|
|
|
this.buttonList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + -16, I18n.format("menu.returnToGame")));
|
|
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + -16, 98, 20, I18n.format("menu.options")));
|
|
- GuiButton guibutton = this.addButton(new GuiButton(7, this.width / 2 + 2, this.height / 4 + 96 + -16, 98, 20, I18n.format("menu.shareToLan")));
|
|
+ this.buttonList.add(new GuiButton(12, this.width / 2 + 2, this.height / 4 + 96 + i, 98, 20, I18n.format("fml.menu.modoptions")));
|
|
+ GuiButton guibutton = this.addButton(new GuiButton(7, this.width / 2 - 100, this.height / 4 + 72 + -16, 200, 20, I18n.format("menu.shareToLan", new Object[0])));
|
|
guibutton.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic();
|
|
this.buttonList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + -16, 98, 20, I18n.format("gui.advancements")));
|
|
this.buttonList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + -16, 98, 20, I18n.format("gui.stats")));
|
|
@@ -73,13 +74,19 @@
|
|
this.mc.setIngameFocus();
|
|
break;
|
|
case 5:
|
|
+ if (this.mc.player != null)
|
|
this.mc.displayGuiScreen(new GuiScreenAdvancements(this.mc.player.connection.getAdvancementManager()));
|
|
break;
|
|
case 6:
|
|
+ if (this.mc.player != null)
|
|
this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
|
|
break;
|
|
case 7:
|
|
this.mc.displayGuiScreen(new GuiShareToLan(this));
|
|
+ break;
|
|
+ case 12:
|
|
+ net.minecraftforge.fml.client.FMLClientHandler.instance().showInGameModOptions(this);
|
|
+ break;
|
|
}
|
|
}
|
|
|