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 all rtl and trimEmptySlots quirks

+3 -1
+3 -1
src/client/java/com/armorhud/mixin/client/armorHudMixin.java
··· 91 91 92 92 float hungerX = scaledWidth / 2f + startXPosition; 93 93 float x = hungerX + hungerWidth - (7 * emptyArmorSlots) + 2 - (armorWidth * 2); 94 - if ( config.TRIM_EMPTY_SLOTS ) { x += ( (float) hungerWidth / 2 ); } 95 94 96 95 if (config.RTL) { 96 + if ( config.TRIM_EMPTY_SLOTS ) { x -= (float) (( (float) armorWidth / 2 ) + 0.5); } 97 + x += armorWidth; 97 98 for ( int i = slots.length - 1; i > 0; i-- ) { 98 99 EquipmentSlot slot = slots[i]; 99 100 if (!slot.isArmor()) continue; ··· 105 106 renderArmorPiece(context, x, armorHeight, minecraft.player, armor); 106 107 } 107 108 } else { 109 + if ( config.TRIM_EMPTY_SLOTS ) { x += ( (float) hungerWidth / 2 ); } 108 110 for ( EquipmentSlot slot : slots ) { 109 111 if ( !slot.isArmor() ) continue; 110 112 ItemStack armor = armorAccessor.getArmorPiece(minecraft.player, slot);