diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-15 04:07:36 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-15 04:07:36 +0000 |
commit | 4e4058da31c3575b69c69d2d7bb3c9af29e248dc (patch) | |
tree | d46d48754f080386e23bb86e884580fed0f555f3 /src/main/java/com/thatgravyboat/skyblockhud/overlay | |
parent | 718740e85f48b57bf712a62f811cd4d34dd98450 (diff) | |
download | SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.gz SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.tar.bz2 SkyblockHud-Death-Defied-4e4058da31c3575b69c69d2d7bb3c9af29e248dc.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/overlay')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java b/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java index fc918db..880e2ea 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/overlay/GenericOverlays.java @@ -32,7 +32,7 @@ public class GenericOverlays extends Gui { public static void drawSmallBar(Minecraft mc, int x, int y, double percentage, double max, int fullColor, int loadingColor, int barStyle) { if (SkyblockHud.hasSkyblockScoreboard()) { updateBar(); - mc.renderEngine.bindTexture(bars);; + mc.renderEngine.bindTexture(bars); Color color = new Color(percentage == max ? fullColor : loadingColor); GlStateManager.enableBlend(); RenderUtils.drawTexturedModalRect(x, y, 0, 35, 62, 5); @@ -48,9 +48,7 @@ public class GenericOverlays extends Gui { public static void updateBar() { if (lastBar != SkyblockHud.config.misc.barTexture) { lastBar = SkyblockHud.config.misc.barTexture; - if (lastBar == 0) bars = new ResourceLocation("skyblockhud", "bars.png"); - else bars = new ResourceLocation("skyblockhud", "bars_"+lastBar+".png"); + if (lastBar == 0) bars = new ResourceLocation("skyblockhud", "bars.png"); else bars = new ResourceLocation("skyblockhud", "bars_" + lastBar + ".png"); } - } } |