(fix) scoreboard haeder background

This commit is contained in:
kirillsaint 2024-02-09 14:25:20 +06:00
parent 9cc713c551
commit dc8601c83d
1 changed files with 3 additions and 3 deletions

View File

@ -105,10 +105,10 @@ public class ScoreboardMod extends Mod {
if (k == scores.size()) { if (k == scores.size()) {
String s3 = sidebar.getDisplayName(); String s3 = sidebar.getDisplayName();
if(headerBackground) {
Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB());
}
if(background) { if(background) {
if(headerBackground) {
Gui.drawRect(sidebarX - 2, scoreY - fr.FONT_HEIGHT - 1, scoreX, scoreY - 1, headerBgColor.getRGB());
}
Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB()); Gui.drawRect(sidebarX - 2, scoreY - 1, scoreX, scoreY, bgColor.getRGB());
} }
fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow); fr.drawString(s3, sidebarX + (sidebarWidth - fr.getStringWidth(s3)) / 2, scoreY - fr.FONT_HEIGHT, -1, fontShadow);