Skip to content

Commit

Permalink
add comment to help with debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru committed Sep 14, 2023
1 parent 3e4ec7e commit 03bc24c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/tconstruct/client/HealthBarRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public void renderHealthbar(RenderGameOverlayEvent.Pre event) {
// Render tinkers' hearts
mc.getTextureManager().bindTexture(TINKER_HEARTS);
for (int i = Math.max(0, health / 20 - 2); i < health / 20; i++) {
// uncomment the line below to help with debugging
// yBasePos -=20;
final int heartIndexMax = Math.min(10, (health - 20 * (i + 1)) / 2);
for (int j = 0; j < heartIndexMax; j++) {
int y = 0;
Expand Down

0 comments on commit 03bc24c

Please sign in to comment.