From ad41c31385a66438b6647cd489e4ffb018950264 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Fri, 21 Jul 2023 12:05:06 -0500 Subject: Added option to hide hunger and more animation features --- src/main/java/com/dulkirfabric/mixin/render/InGameHudMixin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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; } } -- cgit