Skip to content

Commit

Permalink
Fix switched armor points icons in HUD (#225)
Browse files Browse the repository at this point in the history
Fixes #224
  • Loading branch information
sciwhiz12 authored Oct 31, 2023
1 parent 3cc9041 commit e425cf7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ protected void renderArmor(GuiGraphics guiGraphics, int width, int height) {
int level = minecraft.player.getArmorValue();
for (int i = 1; level > 0 && i < 20; i += 2) {
if (i < level) {
guiGraphics.blitSprite(ARMOR_EMPTY_SPRITE, left, top, 9, 9);
guiGraphics.blitSprite(ARMOR_FULL_SPRITE, left, top, 9, 9);
} else if (i == level) {
guiGraphics.blitSprite(ARMOR_HALF_SPRITE, left, top, 9, 9);
} else if (i > level) {
guiGraphics.blitSprite(ARMOR_FULL_SPRITE, left, top, 9, 9);
} else {
guiGraphics.blitSprite(ARMOR_EMPTY_SPRITE, left, top, 9, 9);
}
left += 8;
}
Expand Down

0 comments on commit e425cf7

Please sign in to comment.