diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-07-13 04:22:16 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-07-13 04:22:16 +0000 |
commit | b3b16e4c82ad1e66f5564c806563dfc23658fdef (patch) | |
tree | 676f37e897537a4820204c30b52b8bc9379c324a /src/main/java/com/thatgravyboat/skyblockhud/mixins | |
parent | 3bd212839e1d3c497a840221a0c149451967467e (diff) | |
download | SkyblockHud-Death-Defied-b3b16e4c82ad1e66f5564c806563dfc23658fdef.tar.gz SkyblockHud-Death-Defied-b3b16e4c82ad1e66f5564c806563dfc23658fdef.tar.bz2 SkyblockHud-Death-Defied-b3b16e4c82ad1e66f5564c806563dfc23658fdef.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/mixins')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java index 873b7bf..5d64950 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; @@ -13,8 +15,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 { @@ -63,8 +63,8 @@ public class MixinGuiIngameForge { ci.cancel(); if (pre(EXPERIENCE)) return; post(EXPERIENCE); - } else 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())){ + } else 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(); if (pre(EXPERIENCE)) return; post(EXPERIENCE); |