mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:31:32 +01:00
Update SilentMainMenu.java
This commit is contained in:
parent
89061248d7
commit
1543317306
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user