aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/mixins
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-13 01:51:19 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-07-13 01:51:19 -0230
commit3bd212839e1d3c497a840221a0c149451967467e (patch)
tree9a306491b76808a17a26c6bef6f74c08cbc99964 /src/main/java/com/thatgravyboat/skyblockhud/mixins
parent087d97fb0663edc5e343187c0fa4ec1bc6b081bc (diff)
downloadSkyblockHud-Death-Defied-3bd212839e1d3c497a840221a0c149451967467e.tar.gz
SkyblockHud-Death-Defied-3bd212839e1d3c497a840221a0c149451967467e.tar.bz2
SkyblockHud-Death-Defied-3bd212839e1d3c497a840221a0c149451967467e.zip
Added 2 new subcommands to crystal waypoints, Added medals shown in farmhouse, Added config option to stop auto flipping of rpg hud, Added option so if exp bar is still being rendered it should hide when holding drill to not overlay them and keep a consistent hud
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/mixins')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
index 9886ba0..873b7bf 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/mixins/MixinGuiIngameForge.java
@@ -1,8 +1,9 @@
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;
+import net.minecraft.client.Minecraft;
import net.minecraftforge.client.GuiIngameForge;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.common.MinecraftForge;
@@ -12,6 +13,8 @@ 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 {
@@ -60,6 +63,12 @@ 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())){
+ ci.cancel();
+ if (pre(EXPERIENCE)) return;
+ post(EXPERIENCE);
+ }
}
}