A mod that adds your armor to the hud modrinth.com/mod/simple-armor-hud
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fixed hotbar attack indicator with right hotbar

legoraft fb9f804f cbd338ef

+6 -1
+6 -1
src/client/java/com/armorhud/mixin/client/armorHudMixin.java
··· 6 6 import net.minecraft.client.MinecraftClient; 7 7 import net.minecraft.client.gui.DrawContext; 8 8 import net.minecraft.client.gui.hud.InGameHud; 9 + import net.minecraft.client.option.AttackIndicator; 9 10 import net.minecraft.client.render.RenderTickCounter; 10 11 import net.minecraft.entity.EquipmentSlot; 11 12 import net.minecraft.entity.LivingEntity; ··· 54 55 renderArmor(context, HOTBAR_LEFT_X); 55 56 break; 56 57 case "HOTBAR_RIGHT": 57 - renderArmor(context, HOTBAR_RIGHT_X); 58 + if ( client.options.getAttackIndicator().getValue() == AttackIndicator.HOTBAR ) { 59 + renderArmor(context, HOTBAR_RIGHT_X + 25); 60 + } else { 61 + renderArmor(context, HOTBAR_RIGHT_X); 62 + } 58 63 break; 59 64 default: 60 65 renderArmor(context, FOODBAR_X);