diff --git a/src/main/java/net/silentclient/client/gui/silentmainmenu/SilentMainMenu.java b/src/main/java/net/silentclient/client/gui/silentmainmenu/SilentMainMenu.java index 09f70c3..ef1a955 100644 --- a/src/main/java/net/silentclient/client/gui/silentmainmenu/SilentMainMenu.java +++ b/src/main/java/net/silentclient/client/gui/silentmainmenu/SilentMainMenu.java @@ -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());