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.

merge: updated to 1.21.6

Updated to 1.21.6

authored by

Legoraft and committed by
GitHub
c86ceff7 903144df

+9 -8
+1 -1
build.gradle
··· 1 1 plugins { 2 - id 'fabric-loom' version '1.10-SNAPSHOT' 2 + id 'fabric-loom' version "${loom_version}" 3 3 id 'maven-publish' 4 4 5 5 }
+5 -4
gradle.properties
··· 4 4 5 5 # Fabric Properties 6 6 # check these on https://fabricmc.net/develop 7 - minecraft_version=1.21.5 8 - yarn_mappings=1.21.5+build.1 7 + minecraft_version=1.21.6 8 + yarn_mappings=1.21.6+build.1 9 9 loader_version=0.16.14 10 + loom_version=1.10-SNAPSHOT 10 11 11 12 # Mod Properties 12 13 mod_version=1.5.1 ··· 14 15 archives_base_name=simple-armor-hud 15 16 16 17 # Dependency properties 17 - fabric_version=0.122.0+1.21.5 18 - modmenu_version=14.0.0-rc.2 18 + fabric_version=0.127.1+1.21.6 19 + modmenu_version=15.0.0-beta.3 19 20 trinkets_version=3.10.0
+3 -3
src/client/java/com/armorhud/mixin/client/armorHudMixin.java
··· 75 75 private void renderArmorPiece(DrawContext context, float x, float y, PlayerEntity player, ItemStack stack) { 76 76 if (stack.isEmpty()) return; 77 77 78 - context.getMatrices().push(); 79 - context.getMatrices().translate(x, y, 0); 78 + context.getMatrices().pushMatrix(); 79 + context.getMatrices().translate(x, y); 80 80 81 81 context.drawItem(player, stack, 0, 0, 1); 82 82 83 83 context.drawStackOverlay(this.client.textRenderer, stack, 0,0); 84 - context.getMatrices().pop(); 84 + context.getMatrices().popMatrix(); 85 85 } 86 86 87 87 @Unique