aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java8
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/overlay/MiningHud.java6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
index 6a4213d..bc49329 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
@@ -1,5 +1,7 @@
package com.thatgravyboat.skyblockhud.mixins;
+import static net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType.*;
+
import com.thatgravyboat.skyblockhud.SkyblockHud;
import com.thatgravyboat.skyblockhud.Utils;
import com.thatgravyboat.skyblockhud.overlay.MiningHud;
@@ -14,8 +16,6 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-import static net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType.*;
-
@Mixin(GuiIngameForge.class)
public class MixinGuiIngameForge {
@@ -64,7 +64,7 @@ public class MixinGuiIngameForge {
ci.cancel();
if (prePost(EXPERIENCE, eventParent)) return;
postPost(EXPERIENCE, eventParent);
- }else if (SkyblockHud.config.mining.barMode == 1) {
+ } else if (SkyblockHud.config.mining.barMode == 1) {
if (!SkyblockHud.config.renderer.hideXpBar && (SkyblockHud.config.mining.showDrillBar || SkyblockHud.config.mining.showHeatBar) && SkyblockHud.hasSkyblockScoreboard()) {
if (MiningHud.getHeat() > 0 || Utils.isDrill(Minecraft.getMinecraft().thePlayer.getHeldItem())) {
ci.cancel();
@@ -81,7 +81,7 @@ public class MixinGuiIngameForge {
ci.cancel();
if (prePost(JUMPBAR, eventParent)) return;
postPost(JUMPBAR, eventParent);
- }else if (SkyblockHud.config.mining.barMode == 1) {
+ } else if (SkyblockHud.config.mining.barMode == 1) {
if (!SkyblockHud.config.renderer.hideXpBar && (SkyblockHud.config.mining.showDrillBar || SkyblockHud.config.mining.showHeatBar) && SkyblockHud.hasSkyblockScoreboard()) {
if (MiningHud.getHeat() > 0 || Utils.isDrill(Minecraft.getMinecraft().thePlayer.getHeldItem())) {
ci.cancel();
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/overlay/MiningHud.java b/src/main/java/com/thatgravyboat/skyblockhud/overlay/MiningHud.java
index 5a2f148..fa4136f 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/overlay/MiningHud.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/overlay/MiningHud.java
@@ -42,12 +42,12 @@ public class MiningHud extends Gui {
} else if (heat > 0 && SkyblockHud.config.mining.showHeatBar) {
renderHeatBar(mc, (event.resolution.getScaledWidth() / 2) - 22, event.resolution.getScaledHeight() - 31);
}
- }else if (SkyblockHud.config.mining.barMode == 0) {
- if (heat > 0 && SkyblockHud.config.mining.showHeatBar){
+ } else if (SkyblockHud.config.mining.barMode == 0) {
+ if (heat > 0 && SkyblockHud.config.mining.showHeatBar) {
Position position = SkyblockHud.config.mining.heatBar;
renderHeatBar(mc, position.getAbsX(event.resolution, 45), position.getAbsY(event.resolution, 7));
}
- if (Utils.isDrill(mc.thePlayer.getHeldItem()) && SkyblockHud.config.mining.showDrillBar){
+ if (Utils.isDrill(mc.thePlayer.getHeldItem()) && SkyblockHud.config.mining.showDrillBar) {
Position position = SkyblockHud.config.mining.drillBar;
renderFuelBar(mc, position.getAbsX(event.resolution, 136), position.getAbsY(event.resolution, 7));
}