Update SilentMainMenu.java

This commit is contained in:
kirillsaint 2023-07-25 18:22:29 +06:00
parent 89061248d7
commit 1543317306

View File

@ -148,6 +148,17 @@ public class SilentMainMenu extends SilentScreen {
blockY = 70;
}
if(MouseUtils.isInside(mouseX, mouseY, blockX + 78, blockY + 10, 231, 130)) {
try {
Class<?> oclass = Class.forName("java.awt.Desktop");
Object object = oclass.getMethod("getDesktop", new Class[0]).invoke((Object)null, new Object[0]);
oclass.getMethod("browse", new Class[] {URI.class}).invoke(object, new Object[] {new URI("https://silentclient.net/news/" + GuiNews.news.getItem().id)});
} catch (Throwable err) {
err.printStackTrace();
}
return;
}
int optionY = blockY + 10;
if(this.optionHovered(mouseX, mouseY, blockX, optionY)) {
mc.displayGuiScreen(new CosmeticsGui());