aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-21 12:05:06 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-21 12:05:06 -0500
commitad41c31385a66438b6647cd489e4ffb018950264 (patch)
tree0e81216ac64160d0a1f169b06cb87fb168099dbe /src/main/java
parent253a9bffcf3a3f8f99bb426b7b6d8031e73c82ba (diff)
downloadDulkirMod-Fabric-ad41c31385a66438b6647cd489e4ffb018950264.tar.gz
DulkirMod-Fabric-ad41c31385a66438b6647cd489e4ffb018950264.tar.bz2
DulkirMod-Fabric-ad41c31385a66438b6647cd489e4ffb018950264.zip
Added option to hide hunger and more animation features
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java b/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java
index 3a7c9ba..f0b4988 100644
--- a/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java
+++ b/src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java
@@ -43,6 +43,8 @@ public class InGameHudMixin {
at = @At(value = "INVOKE",
target = "Lnet/minecraft/client/gui/hud/InGameHud;getHeartCount(Lnet/minecraft/entity/LivingEntity;)I"))
public int onCheckForRiding(int original) {
- return 0;
+ if (DulkirConfig.ConfigVars.getConfigOptions().getHideHungerOverlay() && Utils.INSTANCE.isInSkyblock())
+ return 1;
+ return original;
}
}