Update to 1.21.5

This commit is contained in:
2025-04-16 20:29:34 +02:00
parent d0465eeed6
commit b5eef469d7
4 changed files with 7 additions and 12 deletions

View File

@@ -205,7 +205,6 @@ public class InGameHudMixin {
// Use the drawBar method to render the armor bar
drawBar(context, x, posY, barWidth, barHeight, armorPercentage, color, 0xFF000000, armorText, toughnessPercentage, generateSubBarColor(color));
RenderSystem.disableBlend();
}
}
@@ -260,14 +259,10 @@ public class InGameHudMixin {
int filledWidth = (int) (player.experienceProgress * barWidth);
int y = screenHeight - 34;
RenderSystem.enableBlend();
// Display experienceGotForThisLevel/experienceNeededForNextLevel
String experienceText = "%d/%d (%d)".formatted(experienceGotForThisLevel, experienceNeededForNextLevel, experienceLevel);
drawBar(context, x, y, barWidth, barHeight, (float) filledWidth / barWidth, 0xFFAAAA00, 0xFF000000, experienceText, 0, 0);
RenderSystem.disableBlend();
}
}