diff options
author | hannibal00212 <hannibal00212@users.noreply.github.com> | 2022-07-08 21:56:15 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2022-07-08 21:56:15 +0000 |
commit | e480239b6816e115208102e136052c3686a79a1c (patch) | |
tree | 6fc828a4797d2bad58c14b0061f4bf996de4ef41 /src/main | |
parent | 89c39cfe427064d69a9af767dfe9d2951cc6bd1b (diff) | |
download | skyhanni-e480239b6816e115208102e136052c3686a79a1c.tar.gz skyhanni-e480239b6816e115208102e136052c3686a79a1c.tar.bz2 skyhanni-e480239b6816e115208102e136052c3686a79a1c.zip |
Prettified Code!
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud_2/config/SBHConfigEditor.java | 20 |
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; } } |