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.

chore: removed debug prints and commented code

-16
-16
src/client/java/com/armorhud/mixin/client/armorHudMixin.java
··· 115 115 renderArmorPiece(context, x, armorHeight, minecraft.player, armor); 116 116 } 117 117 } 118 - System.out.println(x); 119 - 120 - /* Putting this on the backburner for a little while to implement other things - Legoraft 121 - 122 - // counts empty slots to center condensed armor bar, don't like having to loop through the equip slots twice but idk how else to center this dynamically -dino 123 - int emptyArmorSlots = 0; 124 - if (config.TRIM_EMPTY_SLOTS) { 125 - for (int i = 2; i<6; i++) { // checks players armor slots only. probably makes stuff like trinkets incompatible -dino 126 - if(client.player.getEquippedStack(slots[i]).isEmpty()) { 127 - emptyArmorSlots++; 128 - } 129 - } 130 - } 131 - 132 - float x = hungerX + hungerWidth - (7 * emptyArmorSlots) + 2; 133 - */ 134 118 } 135 119 136 120 @Unique