diff --git a/src/main/java/me/juancarloscp52/bedrockify/mixin/client/features/screenSafeArea/InGameHudMixin.java b/src/main/java/me/juancarloscp52/bedrockify/mixin/client/features/screenSafeArea/InGameHudMixin.java index ffa9281..bdccebb 100644 --- a/src/main/java/me/juancarloscp52/bedrockify/mixin/client/features/screenSafeArea/InGameHudMixin.java +++ b/src/main/java/me/juancarloscp52/bedrockify/mixin/client/features/screenSafeArea/InGameHudMixin.java @@ -131,7 +131,13 @@ public int modifyTextureStatusBar(int y){ private int modifyTextureStatusBarsHearts(int y){ return y-screenBorder; } - + /** + * Apply screen border offset to armor bars. + */ + @ModifyArg(method = "renderStatusBars", at = @At(value = "INVOKE",target = "Lnet/minecraft/client/gui/hud/InGameHud;renderArmor(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/entity/player/PlayerEntity;IIII)V"), index = 2) + private int modifyTextureStatusBarsArmor(int i){ + return i-screenBorder; + } /** * Apply screen border offset to food bars. */