Update to 1.21.5
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user