aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java b/src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java
index 149a2ca7d..9f175c02d 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java
@@ -1,5 +1,7 @@
package com.thatgravyboat.skyblockhud_2.config;
+import static com.thatgravyboat.skyblockhud_2.GuiTextures.DISCORD;
+
import at.lorenz.mod.config.Features;
import com.google.common.collect.Lists;
import com.thatgravyboat.skyblockhud_2.core.GlScissorStack;
@@ -11,6 +13,10 @@ import com.thatgravyboat.skyblockhud_2.core.util.lerp.LerpUtils;
import com.thatgravyboat.skyblockhud_2.core.util.lerp.LerpingInteger;
import com.thatgravyboat.skyblockhud_2.core.util.render.RenderUtils;
import com.thatgravyboat.skyblockhud_2.core.util.render.TextRenderUtils;
+import java.awt.*;
+import java.net.URI;
+import java.util.*;
+import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
@@ -21,19 +27,12 @@ import net.minecraft.util.ResourceLocation;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
-import java.awt.*;
-import java.net.URI;
-import java.util.List;
-import java.util.*;
-
-import static com.thatgravyboat.skyblockhud_2.GuiTextures.DISCORD;
-
public class SBHConfigEditor extends GuiElement {
// private static final ResourceLocation[] socialsIco = new ResourceLocation[] { DISCORD, TWITTER };
- private static final ResourceLocation[] socialsIco = new ResourceLocation[]{DISCORD};
+ private static final ResourceLocation[] socialsIco = new ResourceLocation[] { DISCORD };
// private static final String[] socialsLink = new String[] { "https://discord.gg/NcvkPDBA6Y", "https://twitter.com/thatgravyboat/" };
- private static final String[] socialsLink = new String[]{"https://discord.gg/NcvkPDBA6Y"};
+ private static final String[] socialsLink = new String[] { "https://discord.gg/NcvkPDBA6Y" };
private final long openedMillis;
@@ -475,8 +474,7 @@ public class SBHConfigEditor extends GuiElement {
if (mouseX >= socialLeft && mouseX <= socialLeft + 16 && mouseY >= y + 6 && mouseY <= y + 23) {
try {
Desktop.getDesktop().browse(new URI(socialsLink[socialIndex]));
- } catch (Exception ignored) {
- }
+ } catch (Exception ignored) {}
return true;
}
}